grasp_input_settings.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 CNRS & Universite Lille 1. All rights reserved.
3  *
4  * Licensed under the GRASP Open Source License V1.0 (see LICENSE file)
5  */
6 
7 /*
8  * File: grasp_input_segment.h
9  * Author: fuertes
10  *
11  * Created on May 30, 2014, 11:36 PM
12  */
13 
14 #ifndef GRASP_INPUT_SETTINGS_H
15 #define GRASP_INPUT_SETTINGS_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include "../retrieval/constants_set/mod_globals.inc"
22 #include "grasp_input_functions_settings.h"
23 
24 #define GRASP_INPUT_MAX_FILES 3000
25 #define GRASP_INPUT_MAX_TRANSFORMERS 5
26 
27 typedef struct {
29  float lon;
31  float lat;
32 } coord_t;
33 
34 typedef struct {
35  // Row coordinate
36  int row;
37  // Column coordinate
38  int col;
39 } coord_grid_t;
40 
41 
42 typedef struct input_settings_t_{
45  // the center of tile
47  // corner in row cols
49  // the offset of the segmentation grid taking 0,0 like reference. Output will be refered to 0,0.
50  // If you want that the output will be refered to set 0,0 in this parameter
52  // Reference for coordinates: center or corner
54  // type of coordinates: latlon or rowcol
55  char coordinates_type[25];
60  // Initial date for data processing
61  char time_from[255];
62  // Final date for data processing
63  char time_to[255];
68  // the number of different times that a segment can have
70  // Number of files to process
71  int nfiles;
72  // Name of file if it is necessary
73  char files[GRASP_INPUT_MAX_FILES][_GBL_FILE_PATH_LEN];
74  // Name of driver for retrieve data
75  char driver_name[_GBL_FILE_PATH_LEN];
76  // If this option is true raw segment information will be printed in screen
77  char print_raw_segment[_GBL_FILE_PATH_LEN];;
78  // If this option is true segment information after clean NaN values will be printed in screen
79  char print_clean_segment[_GBL_FILE_PATH_LEN];;
80  // If it is true the name of used files will be dump in screen
81  char print_used_files[_GBL_FILE_PATH_LEN];;
82  // Stream where dump sdata information
83  char sdata_stream[_GBL_FILE_PATH_LEN];
84  // Stream where dump sdata file just after being generated by the driver
85  char original_sdata_stream[_GBL_FILE_PATH_LEN];
86  // Stream where dump imagedat (initial guess) information
87  char imagedat_stream[_GBL_FILE_PATH_LEN];
88  // Number of pixels loaded in block for X
90  // Number of pixels loaded in block for Y
92  // Number of pixels loaded in block for T
94  // Settings from drivers
96  // Settings from transformers
98  // Number of transformers to be used
100  // Name of transformers to be used
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif /* GRASP_INPUT_SETTINGS_H */
109 
char time_to[255]
Definition: grasp_input_settings.h:63
int area_width
the width of the covered area
Definition: grasp_input_settings.h:57
int area_height
the height of the covered area
Definition: grasp_input_settings.h:59
#define GRASP_INPUT_MAX_FILES
Definition: grasp_input_settings.h:24
char coordinates_refence[25]
Definition: grasp_input_settings.h:53
coord_grid_t grid_offset
Definition: grasp_input_settings.h:51
char driver_name[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:75
int segment_nx
the width of a segment
Definition: grasp_input_settings.h:65
GRASP_INPUT_TRANSFORMER_SETTINGS_TRANSFORMER_INCLUDE struct grasp_input_transformer_settings_t_ grasp_input_transformer_settings_t
int segment_ny
the height of a segment
Definition: grasp_input_settings.h:67
grasp_input_driver_settings_t driver
Definition: grasp_input_settings.h:95
Definition: grasp_input_settings.h:42
char time_from[255]
Definition: grasp_input_settings.h:61
char transformers_name[GRASP_INPUT_MAX_TRANSFORMERS][_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:101
coord_t coordinates
Definition: grasp_input_settings.h:46
Definition: grasp_input_settings.h:34
char imagedat_stream[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:87
int ntransformers
Definition: grasp_input_settings.h:99
char files[GRASP_INPUT_MAX_FILES][_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:73
float lon
the longitude of the pixel, i.e. around the globe
Definition: grasp_input_settings.h:29
char sdata_stream[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:81
char print_clean_segment[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:77
char print_used_files[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:79
coord_grid_t coordinates_grid
Definition: grasp_input_settings.h:48
char print_raw_segment[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:77
int preload_nsegmentt
Definition: grasp_input_settings.h:93
char coordinates_type[25]
Definition: grasp_input_settings.h:55
struct input_settings_t_ input_settings_t
int segment_nt
Definition: grasp_input_settings.h:69
float lat
the latitude of the pixel, i.e. towards the poles
Definition: grasp_input_settings.h:31
GRASP_INPUT_DRIVER_SETTINGS_DRIVER_INCLUDE struct grasp_input_driver_settings_t_ grasp_input_driver_settings_t
Definition: grasp_input_settings.h:27
int nfiles
Definition: grasp_input_settings.h:71
char original_sdata_stream[_GBL_FILE_PATH_LEN]
Definition: grasp_input_settings.h:85
int row
Definition: grasp_input_settings.h:36
int preload_nsegmenty
Definition: grasp_input_settings.h:91
int col
Definition: grasp_input_settings.h:38
int preload_nsegmentx
Definition: grasp_input_settings.h:89
coord_t resolution
the the width and heigth of a pixel in geo-coords
Definition: grasp_input_settings.h:44
#define GRASP_INPUT_MAX_TRANSFORMERS
Definition: grasp_input_settings.h:25
grasp_input_transformer_settings_t transformer
Definition: grasp_input_settings.h:97