grasp_output.c File Reference
#include "grasp_output.h"
#include <string.h>
#include <stdlib.h>
#include <grasp/utils.h>
#include "mod_par_OS.inc"
#include "../retrieval/constants_set/mod_globals.inc"
#include <inttypes.h>
#include "../output/grasp_output_stream.h"
#include "../global/grasp_retrieval_characteristic_type.h"
#include <math.h>
#include "grasp_output_tile_result.h"
#include "../global/grasp_error_codes.h"

Functions

void grasp_output_process_output (grasp_settings *settings, grasp_segment_t *segment, output_segment_general *output, const grasp_tile_description_t *tile_description, grasp_results_t *results, int icol, int irow, int itime)
 
int grasp_output_initialize_results (grasp_settings *settings, const grasp_tile_description_t *tile_description, grasp_results_t *results)
 
void grasp_output_destroy_result (const grasp_tile_description_t *tile_description, grasp_results_t *results)
 

Function Documentation

◆ grasp_output_destroy_result()

void grasp_output_destroy_result ( const grasp_tile_description_t tile_description,
grasp_results_t results 
)

◆ grasp_output_initialize_results()

int grasp_output_initialize_results ( grasp_settings settings,
const grasp_tile_description_t tile_description,
grasp_results_t results 
)

◆ grasp_output_process_output()

void grasp_output_process_output ( grasp_settings settings,
grasp_segment_t segment,
output_segment_general output,
const grasp_tile_description_t tile_description,
grasp_results_t results,
int  icol,
int  irow,
int  itime 
)

This function extract output from segment and set it in tile output. It follows these steps:

  1. Set available products as && operator between settings (what the user wants) and the output (what the retrieval can offer)
  2. Allocate memory for product blocks
  3. Parameters
    settings
    segment
    output
    tile_description
    results
    icol
    irow
    itime