• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/home/pascal/depot/filedata/ext/libpolder/ress/polder.h

00001 /*  polder.h
00002 **  author: CESBIO / CISI / CNES
00003 */
00004 /* LIBPOL_VERSION  "@(#)polder.h        1.3 98/01/16" */
00005 #ifndef _POLDER_H_
00006 #define _POLDER_H_
00007 
00008 #ifndef FORTRAN
00009 /*  Functions available in libpolder.a  */
00010 /*  ----------------------------------  */
00011 
00012 #define LINE 0
00013 #define COLUMN 1
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019   int get_Date(int id, char **begin, char **end);
00020 
00021 #ifdef __cplusplus
00022 }
00023 extern "C" {
00024 #endif
00025 
00026   int ExtractVariable_Var(int id, float **val, int type);
00027 
00028 #ifdef __cplusplus
00029 }
00030 extern "C" {
00031 #endif
00032 
00033   int ExtractVariable_Var_Byte(int id, unsigned char **val, int type);
00034 
00035 #ifdef __cplusplus
00036 }
00037 extern "C" {
00038 #endif
00039 
00040   int ExtractVariable_Var_Short(int id, unsigned short **val, int type);
00041 
00042 #ifdef __cplusplus
00043 }
00044 extern "C" {
00045 #endif
00046 
00047   int ExtractVariable_Var_Int(int id, unsigned int **val, int type);
00048 
00049 #ifdef __cplusplus
00050 }
00051 extern "C" {
00052 #endif
00053 
00054   int ExtractVariable_Grid(int id, short **val, int *size, int grid);
00055 
00056 #ifdef __cplusplus
00057 }
00058 
00059 extern "C" {
00060 #endif
00061 
00062   int ExtractPixel(int, int, int, void*, int, ...);
00063 
00064 #ifdef __cplusplus
00065 }
00066 
00067 extern "C" {
00068 #endif
00069 
00070   int ExtractNextPixel(int, int*, int*, void*, int, ...);
00071 
00072 #ifdef __cplusplus
00073 }
00074 
00075 extern "C" {
00076 #endif
00077 
00078   int InitPolder(int, int);
00079 
00080 #ifdef __cplusplus
00081 }
00082 
00083 extern "C" {
00084 #endif
00085 
00086   int OpenProduct(char*);
00087 
00088 #ifdef __cplusplus
00089 }
00090 
00091 extern "C" {
00092 #endif
00093 
00094   void CloseProduct(int);
00095 
00096 #ifdef __cplusplus
00097 }
00098 
00099 extern "C" {
00100 #endif
00101 
00102   int GetProductMaxpix(int id);
00103 
00104 #ifdef __cplusplus
00105 }
00106 
00107 extern "C" {
00108 #endif
00109 
00110   int GetProductType(int id);
00111 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 
00116 extern int ExtractVariable_Var(int id, float **val, int type);
00117 
00118 extern int ExtractVariable_Var_Byte(int id, unsigned char **val, int type);
00119 
00120 extern int ExtractVariable_Var_Short(int id, unsigned short **val, int type);
00121 
00122 extern int ExtractVariable_Var_Int(int id, unsigned int **val, int type);
00123 
00124 extern int ExtractVariable_Grid(int id, short **val, int *size, int grid);
00125 
00126 extern int InitPolder(int NBproduct, int VerboseMode);
00127 /*  InitPolder
00128 **  function: initialize a session of work with the polder library
00129 **  NBproduct: the maximum number of product to be used during the session of work
00130 **  VerboseMode: 0 => no verbose, 1 and more => verbose
00131 **  return: if failed, return a error code
00132 */  
00133 extern int OpenProduct(char* filename);
00134 /*  OpenProduct
00135 **  function: open Polder leader and data files and read parameters for internal
00136 **  use filename: Polder product filename
00137 **      You can use either the Polder leader file name or the Polder data file
00138 **      name, but the two files must be present in the same directory and the
00139 **      filename must be given with its whole pathname.
00140 **  return: product identifiant which should be used as product reference in 
00141 **      other functions.
00142 **      if failed, return a error code
00143 */  
00144 extern void CloseProduct(int id);
00145 /*  CloseProduct
00146 **  function: close the polder Product files
00147 **  id: product identifiant
00148 **  return: N/A
00149 */
00150 
00151 extern int GetProductMaxpix(int id);
00152 
00153 extern int GetProductType(int id);
00154 
00155 extern int ExtractPixel (int id,int line,int column,void* val,int nbpar,...);
00156 /*  ExtractPixel
00157 **  function: extract parameter(s) from Polder pixel
00158 **  id: product identifiant
00159 **  line: line number
00160 **  column: column number (in Polder grid)
00161 **  val: pointer on values array
00162 **  nbpar: number of parameters to extract
00163 **  ...: parameter list (see "Parameters description")
00164 **  return: PLD_OK on success
00165 **      otherwise, return a error code
00166 */
00167 extern int ExtractNextPixel (int id,int* line,int* column,void* val,int nbpar,...);
00168 /*  ExtractNextPixel
00169 **  function:  extract parameter(s) from the next record number in Polder product
00170 **  id: product identifiant
00171 **  line: line number of the pixel read
00172 **  column: column number (in Polder grid)
00173 **  val: pointer on values array
00174 **  nbpar: number of parameters to extract
00175 **  ...: parameter list (see "Parameters description")
00176 **  return: PLD_OK on success
00177 **      otherwise, return a error code
00178 */
00179 extern int ExtractBlock(int id,int lineN,int colW,int lineS,int colE,void* val,int fmt, int nbpar,...);
00180 /*  ExtractBlock
00181 **  function: extract parameter(s) on a rectangular block of pixels
00182 **  id: product identifiant
00183 **  lineN, colW: North-West point coordinates of block
00184 **  lineS, colE: South-East point coordinates of block
00185 **  val: pointer on values array
00186 **  fmt: interleaving mode (BSQ, BIL, BIP)
00187 **  nbpar: number of parameters to extract
00188 **  ...: parameter list (see "Parameters description")
00189 **  return: PLD_OK on success
00190 **      otherwise, return a error code
00191 */
00192 extern int ExtractPixelDQX (int id,int line,int column,unsigned short int * val,int nbpar,...);
00193 /*  ExtractPixelDQX
00194 **  function: extract bits for DQX parameter from Polder pixel
00195 **  id: product identifiant
00196 **  line: line number
00197 **  column: column number (in Polder grid)
00198 **  val: pointer on values array
00199 **  nbpar: number of parameters to extract
00200 **  ...: parameter list (see "dqx.h")
00201 **  return: PLD_OK on success
00202 **      otherwise, return a error code
00203 */
00204 /*  Note: other functions should be added on request  */
00205 #endif
00206 
00207 /*  Definition of error codes returned by functions  */
00208 /*  -----------------------------------------------  */
00209 #define PLD_OK                  0
00210 #define PLD_UNDEF_PID           -1   /* Product identifiant undefined */
00211 #define PLD_MAX_OPENED          -2   /* too many products open */
00212 #define PLD_FILE_ACCESS         -3   /* error on opening leader file */
00213 #define PLD_ALT_FILENAME        -4   /* not generic filename */
00214 #define PLD_FILESIZE            -5   /* error on accessing data */
00215 #define PLD_PRODUCT_EMPTY       -6   /* product empty */
00216 #define PLD_PIXEL_UNDEFINED     -7   /* pixel not observed */
00217 #define PLD_NOMEM               -8   /* memory allocation error */
00218 #define PLD_INVAL               -9   /* invalid parameter */
00219 #define PLD_OUTSIDE             -10  /* line outside the product */
00220 #define PLD_LIG_INVAL           -11  /* invalid lines ( 1st line > Last line) */
00221 #define PLD_PRODUCT_UNAVAILABLE -12  /* product and libpol are not compatible */
00222 
00223 /*  Definition of interleaving mode  */
00224 /*  -------------------------------  */
00225 #define BIP     0       /* parameter values are organized by pixel: 
00226                         line 1 (pixel1: par.1, par.2,... / pixel2: par.1, ...)
00227                         line 2 (pixel1: par.1, par.2,... / pixel2: par.1, ...)
00228                         ... */
00229 #define BIL     1       /* parameter values are organized by line:
00230                         line1 (pixel1: par.1, pixel2: par.1, ..., pixeln: par.1)
00231                         line1 (pixel1: par.2, pixel2: par.2, ..., pixeln: par.2)
00232                         ...
00233                         line2 (pixel1: par.1, pixel2: par.1, ..., pixeln: par.1)
00234                         line2 (pixel1: par.2, pixel2: par.2, ..., pixeln: par.2)
00235                         ...  */
00236 #define BSQ     2       /* parameter values are organized by parameter:
00237                         line1 (pixel1: par.1, pixel2: par.1, ..., pixeln: par.1)
00238                         line2 (pixel1: par.1, pixel2: par.1, ..., pixeln: par.1)
00239                         ...
00240                         line1 (pixel1: par.2, pixel2: par.2, ..., pixeln: par.2)
00241                         line2 (pixel1: par.2, pixel2: par.2, ..., pixeln: par.2)
00242                         ...  */
00243 
00244 #define NaN             -999.
00245 
00246 /*  Definition of extraction mode for directional parameters  */
00247 /*  --------------------------------------------------------  */
00248 #define RAD2REF         268435456       /* extract reflectance in place of radiance
00249                                         ** works with all extraction mode but LIST_++
00250                                         ** usefull only with Level 1 product parameters */
00251 #define VIEW_01         (1*65536)       /* the value of the first direction . inactive */
00252 #define VIEW_02         (2*65536)       /* the value of the second direction. inactive*/
00253 #define VIEW_03         (3*65536)
00254 #define VIEW_04         (4*65536)
00255 #define VIEW_05         (5*65536)
00256 #define VIEW_06         (6*65536)
00257 #define VIEW_07         (7*65536)
00258 #define VIEW_08         (8*65536)       /* ... */
00259 #define VIEW_09         (9*65536)       /* the value may be undefined . inactive*/
00260 #define VIEW_10         (10*65536)
00261 #define VIEW_11         (11*65536)
00262 #define VIEW_12         (12*65536)
00263 #define VIEW_13         (13*65536)
00264 #define VIEW_14         (14*65536)      /* value of the fourteenth direction */
00265 #define ALL             (1*1048576)     /* all values */
00266 #define FIRST           (2*1048576)     /* first valid parameter value */
00267 #define LAST            (3*1048576)     /* last valid parameter value */
00268 #define MEDIAN          (4*1048576)     /* value for median viewing configuration. inactive*/
00269 #define MEAN            (5*1048576)     /* mean of valid values */
00270 #define NADIR           (6*1048576)     /* value for nearest nadir direction */
00271 #define LIST_01         (1*16777216)    /* first parameter value (valid or not) */
00272 #define LIST_02         (2*16777216)    /* two parameters that follow itself */
00273 #define LIST_03         (3*16777216)
00274 #define LIST_04         (4*16777216)
00275 #define LIST_05         (5*16777216)
00276 /* Note: LIST_01 is default mode if omited in the argument list for a directional parameter */
00277 
00278 /*  Definition of parameter types classed by product  */
00279 /*  ------------------------------------------------  */
00280 /*  Note: the parameters with '!' in the description does not be extracted with
00281 **      ExtractPixel or ExtractBlock functions.
00282 */
00283 #define UNDEF           -1      /* Parameter undefined */
00284 
00285 /*  LEVEL 1  */
00286 /*-----------*/
00287 #define B11             4
00288 #define B11_NB_PAR_DIR  23              /* number of directional parameters */
00289 #define SB              1073741824      /* signed word encoding */
00290 
00291 #define B1_DQX          0       /* ! pixel confidence data */
00292 #define B1_CI           1       /* rough cloud indicator */
00293 #define B1_AZS          2       /* solar azimuth angle */
00294 #define B1_NVD          3       /* number of available viewing directions */
00295 #define B1_SA           4       /* ! sequence arrangement */
00296         /* directional parameters */
00297 #define B1_SN           5       /* sequence number within the orbit*/
00298 #define B1_LN           (6+SB)  /* CCD matrix detector line number */
00299 #define B1_CN           (7+SB)  /* CCD matrix detector coulmn number */
00300 #define B1_THS          8       /* solar zenith solar angle */
00301 #define B1_THV          9       /* view zenith angle */
00302 #define B1_RAZ          10      /* relative azimuthal angle */
00303 #define B1_DC_THV       (11+SB)
00304 #define B1_DS_THV       (12+SB)
00305 #define B1_I443         (13+SB) /* normalized radiance for channel 443 nm unpolarized */
00306 #define B1_I443P        (14+SB) /* normalized radiance for channel 443 nm polarized */
00307 #define B1_I490         (15+SB) /* normalized radiance for channel 490 nm */
00308 #define B1_I565         (16+SB) /* normalized radiance for channel 565 nm */
00309 #define B1_I670P        (17+SB) /* normalized radiance for channel 670 nm polarized */
00310 #define B1_I763         (18+SB) /* normalized radiance for channel 763 nm */
00311 #define B1_I765         (19+SB) /* normalized radiance for channel 765 nm */
00312 #define B1_I865P        (20+SB) /* normalized radiance for channel 865 nm polarized */
00313 #define B1_I910         (21+SB) /* normalized radiance for channel 910 nm */
00314 #define B1_Q443P        (22+SB) /* 2nd component of Stockes vector for channel 443 nm polarized */
00315 #define B1_Q670P        (23+SB) /* 2nd component of Stockes vector for channel 670 nm polarized */
00316 #define B1_Q865P        (24+SB) /* 2nd component of Stockes vector for channel 865 nm polarized */
00317 #define B1_U443P        (25+SB) /* 3rd component of Stockes vector for channel 443 nm polarized */
00318 #define B1_U670P        (26+SB) /* 3rd component of Stockes vector for channel 670 nm polarized */
00319 #define B1_U865P        (27+SB) /* 3rd component of Stockes vector for channel 865 nm polarized */
00320 
00321 /*  LEVEL 2  */
00322 /*  Land Surfaces & Atmosphere: surface parameters  */
00323 /*--------------------------------------------------*/
00324 #define L2A             24
00325 #define L2A_NB_PAR_DIR  9       /* number of directional parameters */
00326 #define L2_DQX          0       /* ! pixel confident data */
00327 #define L2_THS          1       /* solar zenith angle */
00328 #define L2_AZS          2       /* solar azimuth angle */
00329 #define L2_NVD          3       /* number of viewing directions */
00330         /* directional parameters */
00331 #define L2_SN           4       /* sequence number within the orbit */
00332 #define L2_THV          5       /* view zenith angle */
00333 #define L2_RAZ          6       /* relative azimuth angle */
00334 #define L2_R443         7       /* surface reflectance for channel 443 nm */
00335 #define L2_R565         8       /* surface reflectance for channel 565 nm */
00336 #define L2_R670         9       /* surface reflectance for channel 670 nm */
00337 #define L2_R765         10      /* surface reflectance for channel 765 nm */
00338 #define L2_R865         11      /* surface reflectance for channel 865 nm */
00339 #define L2_RP865        12      /* signed polarised reflectance for channel 865 nm */
00340 
00341 /*  LEVEL 2  */
00342 /*  Land Surfaces & Atmosphere: aerosols and water vapor  */
00343 /*--------------------------------------------------------*/
00344 #define L2C             25
00345 #define L2_DQX          0       /* ! pixel confident data */
00346 #define L2_TAU865       1       /* aerosol optical thickness for 865 nm */
00347 #define L2_INDEX        2       /* particle refractive index */
00348 #define L2_ANGST        3       /* aerosol Angstrom coefficient */
00349 #define L2_IA           4       /* aerosol index */
00350 #define L2_TAU865F      5       /* optical thickness, from fixed mode, for 865 nm */
00351 #define L2_IQMES        6       /* measurement qualty index */
00352 #define L2_IQINV        7       /* polarized radiance inversion quality index */        
00353 
00354 /*  LEVEL 3  */
00355 /*  Land Surfaces & Atmosphere: surface directional signatures  */
00356 /*--------------------------------------------------------------*/
00357 #define L3A             28
00358 #define L3_DQX          0       /* ! pixel confident data */
00359 #define L3_TH0          1       /* solar zenith angle */
00360 #define L3_K443_1       2       /* 1st parameter BRDF model for channel 443 nm */
00361 #define L3_K443_2       3       /* 2nd parameter BRDF model for channel 443 nm */
00362 #define L3_K443_3       4       /* ... */
00363 #define L3_ER_K443_1    5       /* Accuracy of the 1st parameter BRDF model for channel 443 nm */
00364 #define L3_ER_K443_2    6       /* Accuracy of the 2nd parameter BRDF model for channel 443 nm */
00365 #define L3_ER_K443_3    7       /* ... */
00366 #define L3_K565_1       8       /* 1st parameter BRDF model for channel 565 nm */
00367 #define L3_K565_2       9       /* 2nd parameter BRDF model for channel 565 nm */
00368 #define L3_K565_3       10      /* ... */
00369 #define L3_ER_K565_1    11      /* Accuracy of the 1st parameter BRDF model for channel 565 nm */
00370 #define L3_ER_K565_2    12      /* Accuracy of the 2nd parameter BRDF model for channel 565 nm */
00371 #define L3_ER_K565_3    13      /* ... */
00372 #define L3_K670_1       14      /* 1st parameter BRDF model for channel 670 nm */
00373 #define L3_K670_2       15      /* 2nd parameter BRDF model for channel 670 nm */
00374 #define L3_K670_3       16      /* ... */
00375 #define L3_ER_K670_1    17      /* Accuracy of the 1st parameter BRDF model for channel 670 nm */
00376 #define L3_ER_K670_2    18      /* Accuracy of the 2nd parameter BRDF model for channel 670 nm */
00377 #define L3_ER_K670_3    19      /* ... */
00378 #define L3_K765_1       20      /* 1st parameter BRDF model for channel 765 nm */
00379 #define L3_K765_2       21      /* 2nd parameter BRDF model for channel 765 nm */
00380 #define L3_K765_3       22      /* ... */
00381 #define L3_ER_K765_1    23      /* Accuracy of the 1st parameter BRDF model for channel 765 nm */
00382 #define L3_ER_K765_2    24      /* Accuracy of the 2nd parameter BRDF model for channel 765 nm */
00383 #define L3_ER_K765_3    25      /* ... */
00384 #define L3_K865_1       26      /* 1st parameter BRDF model for channel 865 nm */
00385 #define L3_K865_2       27      /* 2nd parameter BRDF model for channel 865 nm */
00386 #define L3_K865_3       28      /* ... */
00387 #define L3_ER_K865_1    29      /* Accuracy of the 1st parameter BRDF model for channel 865 nm */
00388 #define L3_ER_K865_2    30      /* Accuracy of the 2nd parameter BRDF model for channel 865 nm */
00389 #define L3_ER_K865_3    31      /* ... */
00390 
00391 /*  LEVEL 3  */
00392 /*  Land Surfaces & Atmosphere: albedo and NDVI  */
00393 /*-----------------------------------------------*/
00394 #define L3B             29
00395 #define L3_BDQX         0       /* ! pixel confident data */
00396 #define L3_BTH0         1       /* solar zenith angle */
00397 #define L3_RH443        2       /* directional hemispheric reflectance for channel 443 nm */
00398 #define L3_ER_RH443     3       /* Accuracy of th e directional hemispheric reflectance for channel 443 nm*/
00399 #define L3_RH565        4       /* directional hemispheric reflectance for channel 565 nm */
00400 #define L3_ER_RH565     5       /* Accuracy of th e directional hemispheric reflectance for channel 565 nm*/
00401 #define L3_RH670        6       /* directional hemispheric reflectance for channel 670 nm */
00402 #define L3_ER_RH670     7       /* Accuracy of th e directional hemispheric reflectance for channel 670 nm*/
00403 #define L3_RH765        8       /* directional hemispheric reflectance for channel 765 nm */
00404 #define L3_ER_RH765     9       /* Accuracy of th e directional hemispheric reflectance for channel 765 nm*/
00405 #define L3_RH865        10      /* directional hemispheric reflectance for channel 865 nm */
00406 #define L3_ER_RH865     11      /* Accuracy of th e directional hemispheric reflectance for channel 865 nm*/
00407 #define L3_NDVI         12      /* Normalised Difference Vegetation Index */
00408 #define L3_ER_NDVI      13      /* Accuracy of Normalised Difference Vegetation Index */
00409 #define L3_LAI          14      /* Leaf Area Index */
00410 #define L3_ER_LAI       15      /* Accuracy of Leaf Area Index */
00411 #define L3_VEG          16      /* Vegetation cover */
00412 #define L3_ER_VEG       17      /* Accuracy of Vegetation cover */
00413 
00414 /*  LEVEL 3  */
00415 /*  Land Surfaces & Atmosphere: atmospheric parameters */
00416 /*-----------------------------------------------------*/
00417 #define L3C             30
00418 #define L3_CDQX         0       /* ! pixel confident data */
00419 #define L3_NB_1         1       /* number of observations used within decade 1 */
00420 #define L3_TAU_1        2       /* mean general aerosol optical thickness within decade 1 */
00421 #define L3_ANGST_1      3       /* mean of angstrom coefficient within decade 1 */
00422 #define L3_IA_1         4       /* mean aerosol index within decade 1*/
00423 #define L3_TAUF_1       5       /* mean aerosol optical thickness from fixed mode within decade 1 */
00424 #define L3_NB_2         6       /* number of observations used within decade 2 */
00425 #define L3_TAU_2        7       /* mean general aerosol optical thickness within decade 2 */
00426 #define L3_ANGST_2      8       /* mean of angstrom coefficient within decade 2 */
00427 #define L3_IA_2         9       /* mean aerosol index within decade 2*/
00428 #define L3_TAUF_2       10      /* mean aerosol optical thickness from fixed mode within decade 2 */
00429 #define L3_NB_3         11      /* number of observations used within decade 3 */
00430 #define L3_TAU_3        12      /* mean general aerosol optical thickness within decade 3 */
00431 #define L3_ANGST_3      13      /* mean of angstrom coefficient within decade 3 */
00432 #define L3_IA_3         14      /* mean aerosol index within decade 3*/
00433 #define L3_TAUF_3       15      /* mean aerosol optical thickness from fixed mode within decade 3 */
00434 #define L3_NB_M         16      /* number of observations used within the month */
00435 #define L3_TAU_M        17      /* mean general aerosol optical thickness within the month */
00436 #define L3_ANGST_M      18      /* mean of angstrom coefficient within the month  */
00437 #define L3_IA_M         19      /* mean aerosol index within the month*/
00438 #define L3_TAUF_M       20      /* mean aerosol optical thickness from fixed mode within the month */
00439 #define L3_TAUQ_0       21      /* minimal  general aerosol optical thickness  */
00440 #define L3_TAUQ_1       22      /* first quartile of  general aerosol optical thickness  */
00441 #define L3_TAUQ_2       23      /* mean general aerosol optical thickness  */
00442 #define L3_TAUQ_3       24      /* third quartile of general aerosol optical thickness   */
00443 #define L3_TAUQ_4       25      /* maximal general aerosol optical  */
00444 #define L3_IAQ_0        26      /* minimal  aerosol index  */
00445 #define L3_IAQ_1        27      /* first quartile of  aerosol index  */
00446 #define L3_IAQ_2        28      /* mean  aerosol index  */
00447 #define L3_IAQ_3        29      /* third quartile of  aerosol index   */
00448 #define L3_IAQ_4        30      /* maximal  aerosol index  */
00449 #define L3_TAUQF_0      31      /* minimal  aerosol optical thickness  from fixed mode */
00450 #define L3_TAUQF_1      32      /* first quartile of  aerosol optical thickness from fixed mode  */
00451 #define L3_TAUQF_2      33      /* mean aerosol optical thickness  from fixed mode*/
00452 #define L3_TAUQF_3      34      /* third quartile of aerosol optical thickness  from fixed mode */
00453 #define L3_TAUQF_4      35      /* maximal aerosol optical from fixed mode */
00454 #define L3_F_ANGST_1    36      /* frequency of angstrom coefficient occurence in class 1 */
00455 #define L3_F_ANGST_2    37      /* frequency of angstrom coefficient occurence in class 2 */
00456 #define L3_F_ANGST_3    38      /* frequency of angstrom coefficient occurence in class 3 */
00457 #define L3_F_ANGST_4    39      /* frequency of angstrom coefficient occurence in class 4 */
00458 #define L3_F_INDEX_1    40      /* frequency of refractive index occurence in class 1 */
00459 #define L3_F_INDEX_2    41      /* frequency of refractive index occurence in class 2 */
00460 #define L3_F_INDEX_3    42      /* frequency of refractive index occurence in class 3 */
00461 
00462 /*  LEVEL 2  */
00463 /*  Ocean color & marine aerosols: directional parameters  */
00464 /*---------------------------------------------------------*/
00465 #define O2A             40
00466 #define O2A_NB_PAR_DIR  8       /* number of directional parameters */
00467 #define O2_DQX          0       /* ! pixel confident data */
00468 #define O2_THS          1       /* solar zenith angle */
00469 #define O2_AZS          2       /* solar azimuth angle */
00470 #define O2_NVD          3       /* number of viewing directions */
00471 #define O2_X_DISX       4       /* SeaWIFS aerosol model */
00472 #define O2_AANGST       5       /* Angstrom coefficient */
00473 #define O2_ATAU865      6       /* aerosol optical thickness for 865 nm */
00474 #define O2_AOMEGA       7       /* albedo for a simple diffusion */
00475 #define O2_FOAMREFL     8       /* foam reflectance */
00476 #define O2_IQAERO       9       /* aerosols confidence index */
00477 #define O2_TICTIL       10      /* integration time flags */
00478 #define O2_UO3          11      /* ozone integrated content */
00479 #define O2_WINDVEL      12      /* wind surface velocity */
00480 #define O2_SURFPRES     13      /* surface pressure */
00481         /* directional parameters */
00482 #define O2_THV          14      /* view zenith angle */
00483 #define O2_RAZ          15      /* relative azimuth angle */
00484 #define O2_GAMMA        16      /* diffusion angle */
00485 #define O2_RW443        17      /* marine reflectance for channel 443 nm */
00486 #define O2_RW490        18      /* marine reflectance for channel 490 nm */
00487 #define O2_RW565        19      /* marine reflectance for channel 565 nm */
00488 #define O2_RW670        20      /* marine reflectance for channel 670 nm */
00489 #define O2_RC865        21      /* reflectance for channel 865 nm */
00490 
00491 
00492 /*  LEVEL 2  */
00493 /*  Ocean color & marine aerosols: non directional parameters  */
00494 /*-------------------------------------------------------------*/
00495 #define O2B             41
00496 #define O2_BDQX         0       /* ! pixel confident data */
00497 #define O2_BTHS         1       /* solar zenith angle */
00498 #define O2_BAZS         2       /* solar azimuth angle */
00499 #define O2_BX_DISX      3       /* SeaWIFS aerosol model */
00500 #define O2_BANGST       4       /* Angstrom coefficient */
00501 #define O2_TAU865       5       /* aerosol optical thickness for 865 nm */
00502 #define O2_BOMEGA       6       /* Albedo for a simple diffusion */
00503 #define O2_BFOAMREFL    7       /* foam reflectance */
00504 #define O2_BIQAERO      8       /* aerosols confidence index */
00505 #define O2_DR443        9       /* diffuse marine reflectance for channel 443 nm */
00506 #define O2_DR490        10      /* diffuse marine reflectance for channel 490 nm */
00507 #define O2_DR565        11      /* diffuse marine reflectance for channel 565 nm */
00508 #define O2_DR670        12      /* diffuse marine reflectance for channel 670 nm */
00509 #define O2_PIGMENT      13      /* pigment concentration */
00510 #define O2_CHLORO       14      /* chlorophyll concentration (sea wifs model) */
00511 #define O2_WTYPE        15      /* water type */
00512 #define O2_IQPIG        16      /* pigment confidence index */
00513 #define O2_BBACK        17      /* back diffusion marine coefficient, for 443 nm */
00514 #define O2_ABS443       18      /* absporption marine coefficient for 443 nm */
00515 #define O2_ABS490       19      /* absporption marine coefficient for 490 nm */
00516 #define O2_WSURF        20      /* surface wind */
00517 
00518 /*  LEVEL 2  */
00519 /*  Ocean color & marine aerosols: marine aerosol parameters  */
00520 /*------------------------------------------------------------*/
00521 #define O2C             42
00522 #define O2_DQS          0       /* ! super-pixel confident data */
00523 #define O2_IQINVERS     1       /* inversion quality index */
00524 #define O2_CTHS         2       /* solar zenith angle */
00525 #define O2_TAU865T      3       /* total aerosols optical thickness, for 865 nm */
00526 #define O2_TAU670T      4       /* total aerosols optical thickness, for 670 nm */
00527 #define O2_CANGST       5       /* Angstrom coefficient from mix between 670 and 865 nm*/
00528 #define O2_OMEGA        6       /* mixing simple diffusion albedo for 865nm */
00529 #define O2_G            7       /* mixing asymetry factor */
00530 #define O2_INDEX        8       /* aerosol index */
00531 #define O2_REFF         9       /* mixed mode real radius */
00532 #define O2_REFF_SMALL   10      /* small mode real radius */
00533 #define O2_REFF_BIG     11      /* big mode real radius */
00534 #define O2_TAU865_SMALL 12      /* aerosols optical thickness, from small model, for 865 nm */
00535 #define O2_TAU670_SMALL 13      /* aerosols optical thickness, from small model, for 670 nm */
00536 #define O2_ANGST_SMALL  14      /* Angstrom coefficient from mix between 670 and 865 nm small mode */
00537 #define O2_TAU865_GS    15      /* Tau of spherical coarse mode at 865.For favorable viewing geom*/
00538 #define O2_TAU865_GNS   16      /* Tau of non-spherical coarse mode at 865.For favorable viewing geom*/
00539 #define O2_ID           17      /* Noshericity ratio of the big mode */
00540 #define O2_INDEX_SMALL  18      /* small mode aerasols refractive index */
00541 #define O2_INDEX_BIG    19      /* big mode aerasols refractive index */
00542 
00543 
00544 
00545 /*  LEVEL 3  */
00546 /*  Ocean color & marine aerosols: marine parameters synthesis */
00547 /*-------------------------------------------------------------*/
00548 #define O3B             45
00549 #define O3_DQX          0       
00550                 /* decade 1 */
00551 #define O3_MRAU443_D1   1       /* mean of diffuse marine reflectances, for 443 nm */
00552 #define O3_MRAU490_D1   2       /* mean of diffuse marine reflectances, for 490 nm */
00553 #define O3_MRAU565_D1   3       /* mean of diffuse marine reflectances, for 565 nm */
00554 #define O3_MRAU670_D1   4       /* mean of diffuse marine reflectances, for 670 nm */
00555 #define O3_MPIGMENT_D1  5       /* mean of pigment concentrations */
00556 #define O3_MCHLORO_D1   6       /* mean of seaWIFS chlorophyll*/
00557 #define O3_MTAU865_D1   7       /* mean of aerosol optical thickness, for 865 nm */
00558 #define O3_MANGST_D1    8       /* mean of angstrom coefficient */
00559 #define O3_MANG_TAU_D1  9       /* mean of dust index*/
00560 #define O3_MOMEGA_D1    10      /* mean of albedo for a simple diffusion */
00561 #define O3_MBACK_D1     11      /* mean of back diffuse coefficient */
00562 #define O3_MABS443_D1   12      /* mean of marine absorption coefficient, for 443nm */
00563 #define O3_MABS490_D1   13      /* mean of marine absorption coefficient, for 490nm */
00564 #define O3_NOBS_D1      14      /* number of observations*/
00565 #define O3_NOBSWATER_D1 15      /* number of observation for water type 1 */
00566 #define O3_IQPIG_D1     16      /* pigment confidence index */
00567                 /* decade 2 */
00568 #define O3_MRAU443_D2   17      /* mean of diffuse marine reflectances, for 443 nm */
00569 #define O3_MRAU490_D2   18      /* mean of diffuse marine reflectances, for 490 nm */
00570 #define O3_MRAU565_D2   19      /* mean of diffuse marine reflectances, for 565 nm */
00571 #define O3_MRAU670_D2   20      /* mean of diffuse marine reflectances, for 670 nm */
00572 #define O3_MPIGMENT_D2  21      /* mean of pigment concentrations */
00573 #define O3_MCHLORO_D2   22      /* mean of seaWIFS chlorophyll*/
00574 #define O3_MTAU865_D2   23      /* mean of aerosol optical thickness, for 865 nm */
00575 #define O3_MANGST_D2    24      /* mean of angstrom coefficient */
00576 #define O3_MANG_TAU_D2  25      /* mean of dust index*/
00577 #define O3_MOMEGA_D2    26      /* mean of albedo for a simple diffusion */
00578 #define O3_MBACK_D2     27      /* mean of back diffuse coefficient */
00579 #define O3_MABS443_D2   28      /* mean of marine absorption coefficient, for 443nm */
00580 #define O3_MABS490_D2   29      /* mean of marine absorption coefficient, for 490nm */
00581 #define O3_NOBS_D2      30      /* number of observations*/
00582 #define O3_NOBSWATER_D2 31      /* number of observation for water type 1 */
00583 #define O3_IQPIG_D2     32      /* pigment confidence index */
00584                 /* decade 3 */
00585 #define O3_MRAU443_D3   33      /* mean of diffuse marine reflectances, for 443 nm */
00586 #define O3_MRAU490_D3   34      /* mean of diffuse marine reflectances, for 490 nm */
00587 #define O3_MRAU565_D3   35      /* mean of diffuse marine reflectances, for 565 nm */
00588 #define O3_MRAU670_D3   36      /* mean of diffuse marine reflectances, for 670 nm */
00589 #define O3_MPIGMENT_D3  37      /* mean of pigment concentrations */
00590 #define O3_MCHLORO_D3   38      /* mean of seaWIFS chlorophyll*/
00591 #define O3_MTAU865_D3   39      /* mean of aerosol optical thickness, for 865 nm */
00592 #define O3_MANGST_D3    40      /* mean of angstrom coefficient */
00593 #define O3_MANG_TAU_D3  41      /* mean of dust index*/
00594 #define O3_MOMEGA_D3    42      /* mean of albedo for a simple diffusion */
00595 #define O3_MBACK_D3     43      /* mean of back diffuse coefficient */
00596 #define O3_MABS443_D3   44      /* mean of marine absorption coefficient, for 443nm */
00597 #define O3_MABS490_D3   45      /* mean of marine absorption coefficient, for 490nm */
00598 #define O3_NOBS_D3      46      /* number of observations*/
00599 #define O3_NOBSWATER_D3 47      /* number of observation for water type 1 */
00600 #define O3_IQPIG_D3     48      /* pigment confidence index */
00601                 /* month */
00602 #define O3_MRAU443      49      /* mean of diffuse marine reflectances, for 443 nm */
00603 #define O3_MRAU490      50      /* mean of diffuse marine reflectances, for 490 nm */
00604 #define O3_MRAU565      51      /* mean of diffuse marine reflectances, for 565 nm */
00605 #define O3_MRAU670      52      /* mean of diffuse marine reflectances, for 670 nm */
00606 #define O3_ERAU443      53      /* standard deviation of diffuse marine reflectances, for 443 nm */
00607 #define O3_ERAU490      54      /* standard deviation of diffuse marine reflectances, for 490 nm */
00608 #define O3_ERAU565      55      /* standard deviation of diffuse marine reflectances, for 565 nm */
00609 #define O3_ERAU670      56      /* standard deviation of diffuse marine reflectances, for 670 nm */
00610 #define O3_MPIGMENT     57      /* mean of pigment concentrations */
00611 #define O3_MCHLORO      58      /* mean of seaWIFS chlorophyll*/
00612 #define O3_EPIGMENT     59      /* standard deviation of pigment concentrations */
00613 #define O3_ECHLORO      60      /* standard deviation of  seaWIFS chlorophyll*/
00614 #define O3_MINPIGMENT   61      /* minimum of pigment concentration */
00615 #define O3_MAXPIGMENT   62      /* maximum of pigment concentration */
00616 #define O3_MINCHLORO    63      /* minimum of seaWIFS chlorophyll*/
00617 #define O3_MAXCHLORO    64      /* maximum of seaWIFS chlorophyll*/
00618 #define O3_MTAU865      65      /* mean of aerosol optical thickness, for 865 nm */
00619 #define O3_ETAU865      66      /* standard deviation of aerosol optical thickness, for 865 nm */
00620 #define O3_MINTAU865    67      /* minimum of aerosol optical thickness, for 865 nm */
00621 #define O3_MAXTAU865    68      /* maximum of aerosol optical thickness, for 865 nm */
00622 #define O3_MANGST       69      /* mean of angstrom coefficient for a month*/
00623 #define O3_EANGST       70      /* standard deviation of angstrom coefficient */
00624 #define O3_MANG_TAU     71      /* mean of dust index for a month*/
00625 #define O3_EANG_TAU     72      /* standard deviation of dust index */
00626 #define O3_MOMEGA       73      /* mean of a simple diffusion albedo for a month*/
00627 #define O3_EOMEGA       74      /* standard deviation a simple diffusion albedo */
00628 #define O3_MBACK        75      /* mean of back diffuse coefficient for a month*/
00629 #define O3_MABS443      76      /* mean of marine absorption coefficient for a month, for 443nm */
00630 #define O3_MABS490      77      /* mean of marine absorption coefficient for a month, for 490nm */
00631 #define O3_EBACK        78      /* standard deviation of back diffuse coefficient */
00632 #define O3_EABS443      79      /* standard deviation of marine absorption coefficient , for 443nm */
00633 #define O3_EABS490      80      /* standard deviation of marine absorption coefficient , for 490nm */
00634 #define O3_NOBS         81      /* number of observations */
00635 #define O3_NOBSWATER    82      /* number of observation for water type 1 */
00636 #define O3_IQPIG        83      /* pigment confidence index */
00637 
00638 /*  LEVEL 3  */
00639 /*  Ocean color & marine aerosols: marine aerosol parameters  */
00640 /*------------------------------------------------------------*/
00641 #define O3C             46
00642 #define O3_DQS          0       /* ! super-pixel confident data */
00643                 /* decade 1 */
00644 #define O3_SNOBS_D1     1       /* number of observations used for decade synthesis */
00645 #define O3_STAU865_D1   2       /* mean of aerosol optical thickness, for 865 nm */
00646 #define O3_STAU865_SMALL_D1     3       /* mean of aerosol optical thickness from small model, for 865 nm */
00647 #define O3_SANGST_D1    4       /* mean of Angstrom coefficients */
00648 #define O3_SANGST_SMALL_D1      5       /* mean of Angstrom coefficients from small model*/
00649 #define O3_SINDEX_D1    6       /* mean of aerosol index */
00650                 /* decade 2 */
00651 #define O3_SNOBS_D2     7       /* number of observations used for decade synthesis */
00652 #define O3_STAU865_D2   8       /* mean of aerosol optical thickness, for 865 nm */
00653 #define O3_STAU865_SMALL_D2     9       /* mean of aerosol optical thickness from small model, for 865 nm */
00654 #define O3_SANGST_D2    10      /* mean of Angstrom coefficients */
00655 #define O3_SANGST_SMALL_D2      11      /* mean of Angstrom coefficients from small model*/
00656 #define O3_SINDEX_D2    12      /* mean of aerosol index */
00657                 /* decade 3 */
00658 #define O3_SNOBS_D3     13      /* number of observations used for decade synthesis */
00659 #define O3_STAU865_D3   14      /* mean of aerosol optical thickness, for 865 nm */
00660 #define O3_STAU865_SMALL_D3     15      /* mean of aerosol optical thickness from small model, for 865 nm */
00661 #define O3_SANGST_D3    16      /* mean of Angstrom coefficients */
00662 #define O3_SANGST_SMALL_D3      17      /* mean of Angstrom coefficients from small model*/
00663 #define O3_SINDEX_D3    18      /* mean of aerosol index */
00664                 /* month */
00665 #define O3_SNOBS        19      /* number of observations used for monthly synthesis */
00666 #define O3_SNOBS_OPT    20      /* number of observations used for monthly synthesis with optimal geom used*/
00667 #define O3_STAU865      21      /* mean of aerosol optical thickness, for 865 nm */
00668 #define O3_STAU865_SMALL        22      /* mean of aerosol optical thickness from small model, for 865 nm */
00669 #define O3_SANGST       23      /* mean of Angstrom coefficients */
00670 #define O3_SANGST_SMALL 24      /* mean of Angstrom coefficients from small model*/
00671 #define O3_SINDEX       25      /* mean of aerosol index for monthly synthesis */
00672 #define O3_STAU865_PP   26      /* mean of tau from small model, for 865 nm, with optimal geom used */
00673 #define O3_STAU865_GS   27      /* mean of tau from spherical coarse mode, for 865 nm, with optimal geom used */
00674 #define O3_STAU865_GNS  28      /* mean of tau from non-spherical coarse mode, for 865 nm, with optimal geom used */
00675 #define O3_STAU865_GC   29      /* mean of tau from  coarse mode, for 865 nm, with optimal geom used */
00676 #define O3_SID          30      /* relative contribution of non spherical particles to O3_STAU865_GC */
00677 #define O3_SQTAU865_1   31      /* aerosol optical thickness monthly quartile, for 865 nm */
00678 #define O3_SQTAU865_2   32      /* aerosol optical thickness monthly quartile, for 865 nm */
00679 #define O3_SQTAU865_3   33      /* aerosol optical thickness monthly quartile, for 865 nm */
00680 #define O3_SQTAU865_4   34      /* aerosol optical thickness monthly quartile, for 865 nm */
00681 #define O3_SQTAU865_5   35      /* aerosol optical thickness monthly quartile, for 865 nm */
00682 #define O3_SQTAU865_SMALL_1     36      /* aerosol optical thickness monthly quartile from small model, for 865 nm */
00683 #define O3_SQTAU865_SMALL_2     37      /* aerosol optical thickness monthly quartile from small model, for 865 nm */
00684 #define O3_SQTAU865_SMALL_3     38      /* aerosol optical thickness monthly quartile from small model, for 865 nm */
00685 #define O3_SQTAU865_SMALL_4     39      /* aerosol optical thickness monthly quartile from small model, for 865 nm */
00686 #define O3_SQTAU865_SMALL_5     40      /* aerosol optical thickness monthly quartile from small model, for 865 nm */
00687 #define O3_SANGST_1     41      /* Angstrom coefficient monthly frequency */
00688 #define O3_SANGST_2     42      /* Angstrom coefficient monthly frequency */
00689 #define O3_SANGST_3     43      /* Angstrom coefficient monthly frequency */
00690 #define O3_SANGST_4     44      /* Angstrom coefficient monthly frequency */
00691 #define O3_SANGST_SMALL_1       45      /* Angstrom coefficient monthly frequency from small model*/
00692 #define O3_SANGST_SMALL_2       46      /* Angstrom coefficient monthly frequency from small model*/
00693 #define O3_SANGST_SMALL_3       47      /* Angstrom coefficient monthly frequency from small model*/
00694 #define O3_SANGST_SMALL_4       48      /* Angstrom coefficient monthly frequency from small model*/
00695 #define O3_SINDEX_SMALL_1       49      /* aerosols refractive index monthly frequency from small model*/
00696 #define O3_SINDEX_SMALL_2       50      /* aerosols refractive index monthly frequency from small model*/
00697 #define O3_SINDEX_SMALL_3       51      /* aerosols refractive index monthly frequency from small model*/
00698 #define O3_SINDEX_BIG_1 52      /* aerosols refractive index monthly frequency from big model*/
00699 #define O3_SINDEX_BIG_2 53      /* aerosols refractive index monthly frequency from big model*/
00700 #define O3_SINDEX_BIG_3 54      /* aerosols refractive index monthly frequency from big model*/
00701 #define O3_SREFFRAD_1   55      /* aerosols effective beam monthly frequency  */
00702 #define O3_SREFFRAD_2   56      /* aerosols effective beam monthly frequency  */
00703 #define O3_SREFFRAD_3   57      /* aerosols effective beam monthly frequency  */
00704 #define O3_SREFFRAD_4   58      /* aerosols effective beam monthly frequency  */
00705 #define O3_SREFFRAD_SMALL_1     59      /* aerosols effective beam monthly frequency from small model */
00706 #define O3_SREFFRAD_SMALL_2     60      /* aerosols effective beam monthly frequency from small model */
00707 #define O3_SREFFRAD_SMALL_3     61      /* aerosols effective beam monthly frequency from small model */
00708 #define O3_SREFFRAD_SMALL_4     62      /* aerosols effective beam monthly frequency from small model */
00709 
00710 /*  LEVEL 2  */
00711 /*  Earth radiation and clouds */
00712 /*-----------------------------*/
00713 #define RC_OPT          536870912   /* OPTION for distribution */
00714 
00715 #define R2B             56
00716 #define R2_TAB_I        8192
00717 #define R2_TAB_J        512
00718 #define R2B_NB_PAR_DIR  10      /* number of directional parameters */
00719 
00720 #define R2_DQS          0       /* ! super-pixel confidence data */
00721 #define R2_H            1       /* super-pixel UTC time : hour */
00722 #define R2_MN           2       /* super-pixel UTC time : minutes */
00723 #define R2_NI           3       /* number of viewing directions */
00724 #define R2_NRNP         4       /* number of viewing directions for Rayleigh   */
00725                                 /* number of elementary pixels*/
00726 #define R2_MINMAXGLIT   5       /* number of the first direction in the glitter */
00727                                 /* number of the last direction in the glitter */
00728 #define R2_MU0          6       /* cosine of solar zenithal angle for centralpixel */
00729 #define R2_AVIS         7       /* Mean of albedos calculated by pixel and by direction */ 
00730                                 /* in visible wavelenght (670 nm over land or 865 over sea) */ 
00731 #define R2_RSDAVIS      8       /* Relative spatial dispertion of albedos calculated by pixel*/
00732                                 /* and by direction in visible wavelenght */
00733 #define R2_RADAVIS      9       /* Relative angular dispertion of albedos calculated by pixel*/
00734                                 /* and by direction in visible wavelenght */
00735 #define R2_QAVIS        10      /* Quality index dispertion of albedos calculated by pixel*/
00736                                 /* and by direction in visible wavelenght */
00737 #define R2_ASCVIS       11      /* albedo of the scene supposed as homgeneous in the visible */
00738                                 /* wavelenght (670 nm over land or 865 over sea) */
00739 #define R2_RADASCVIS    12      /*Relative spatial dispertion of albedo of the scene supposed */
00740                                 /* as homgeneous in the visible wavelenght (670 nm over land or 865 over sea)*/         
00741 #define R2_AVISCLEAR    13      /* "estimated clear sky" albedo in visiblewavelenght */
00742                                 /* (670 nm over land or 865 over sea) */
00743 #define R2_ASW          14      /* Albedo for lambda SW */
00744 #define R2_ASWCLEAR     15      /* "estimated clear sky" albedo for lambda SW */
00745 #define R2_CN           16      /* Cloud cover */
00746 #define R2_CNPLUSMOINS  17      /* Rate of indefinite pixels redistributed "clear sky" */
00747                                 /* Rate of indefinite pixels redistributed "cloudy" */
00748 #define R2_QCN          18      /* Quality index of cloud cover */
00749 #define R2_M_UH2O       19      /* mean of apparent water vapor content on clear sky pixels */
00750 #define R2_QH2O         20      /* Apparent water vapour content on clear sky pixels */
00751 #define R2_M_PCLOUD     21      /* mean of corrected cloud O2 pressure (on cloudy pixels) */
00752 #define R2_S_PCLOUD     22      /* Angular deviation of  cloud O2 pressure  on cloudy pixels)*/
00753 #define R2_M_RAYL       23      /* mean of cloud Rayleigh pressure (on cloudy pixels) */
00754 #define R2_S_RAYL       24      /* Angular deviation of cloud Rayleigh pressure (on cloudy pixels)*/
00755 #define R2_TAU          25      /* Mean of optical thicness on cloudy pixels in visible wavelenght */
00756                                 /* (670 nm over land or 865 over sea) */
00757 #define R2_RSDTAU       26      /* Relative standar deviation of optical thickness on cloudy pixels */
00758                                 /* in visible wavelenght (670 nm over land or 865 over sea) */ 
00759 #define R2_EPSTAU       27      /* coefficient of heterogeneousness on clouy superpixels */
00760                                 /* in visible wavelenght (670 nm over land or 865 over sea) */ 
00761 #define R2_ASVIS        28      /* Cloud spherical albedo in visible wavelenght */
00762                                 /* (670 nm over land or 865 over sea) */ 
00763 #define R2_INDPHASE     29      /* cloud phase quality index (liquid, ice, mixed, */
00764                                 /* undetermined, non calculated with quality hierarchy */                               
00765 #define R2_IND_MICRO    30      /* indicator of ice crystals type */
00766 #define R2_STRAT670     31      /* stratospheric aerosols optical thickness for 670 nm */
00767 #define R2_UO3          32      /* integrated contents of ozone */
00768 #define R2_VVS          33      /* surface wind speed */
00769 #define R2_PHIVS        34      /* surface wind direction */
00770 #define R2_PSURF        35      /* surface pressure */
00771 #define R2_TK           36+R2_TAB_I + 10*R2_TAB_J       
00772                                 /* temperature profile, estimated from Meteo data */
00773 #define R2_UK           46+R2_TAB_I + 10*R2_TAB_J       
00774                                 /* integrated water vapor profile, estimated from Meteo data */ 
00775 
00776                         /* directional parameters */
00777 #define R2_M_THV        56      /* zenithal viewing angle for central pixel */
00778 #define R2_M_AZ         57      /* relative azimuth angle for central pixel */
00779 #define R2_M_RVIS       58      /* Mean of Np corrected reflectance in visible */
00780                                 /* wavelenght (670 nm over land or 865 over sea) */ 
00781 #define R2_M_AVIS       59      /* Mean of Np albedo in visible wavelenght (670 nm over land or 865 over sea) */                                
00782 #define R2_M_RSW        60      /* Mean of Np corrected reflectance for lambda SW*/
00783 #define R2_M_ASW        61      /* Mean of Np albedo  for lambda SW */                          
00784 #define R2_LPMOD865     62      /* mean of Np polaried "modified" radiances for 865 nm */
00785 #define R2_PCTCLOUCLEAR 63      /* ratio of cloud pixels before "indetermination" removal (10 classes) */
00786                                 /* ratio of cloud sky pixels before "indetermination" removal (10 classes) */
00787 #define R2_DCN          64      /* directional cloud cover */
00788 #define R2_SVIS         65      /* Cloud spherical albedo in visible wavelenght (670 nm over land or 865 over sea) */ 
00789                 
00790                                                                 
00791 
00792 
00793 /*  LEVEL 3  */
00794 /*  Earth radiation and clouds */
00795 /*-----------------------------*/
00796 #define R3B             61
00797 #define R3_TAB_I        8192
00798 #define R3_TAB_J        512
00799 
00800 #define R3_NJ           0       /* number of observation days */
00801 #define R3_NORB_TOT     1       /* number of orbits / super-pixel processed */
00802 #define R3_NORB_SNOW    2       /* number of orbits / snow-ice risk */
00803 #define R3_NORB_CLEAR   3       /* number of orbits/cloud cover is zero */
00804 #define R3_NORB_CN      4       /* number of orbits/cloud cover not zero */
00805 #define R3_NORB_TAU     5       /* number of orbits/albedo determined */
00806 #define R3_NORB_PCLOUD  6       /* number of orbits/corrected cloud O2 pressure determined */
00807 #define R3_NORB_PRAY    7       /* number of orbits/cloud Rayleigh pressure determined */
00808 #define R3_NORB_PHASE   8       /* number of orbits/phase determined */
00809 #define R3_NORB_UH2O    9       /* number of orbits/UH2O determined */
00810 #define R3_M_MU0        10      /* monthly mean of zenithal solar cosines MUs */
00811 #define R3_M_AVIS       11      /* monthly mean of albedos in visible wavelenght */
00812                                 /* (670nm over land or 865 over sea) */
00813 #define R3_S_AVIS       12      /* temporal standard deviation of albedos in visible wavelenght */
00814                                 /* (670nm over land or 865 over sea) */ 
00815 #define R3_M_AVISCLEAR  13      /* monthly mean of " clear sky" albedos in visible wavelenght */
00816                                 /* (670nm over land or 865 over sea) */
00817 #define R3_S_AVISCLEAR  14      /* temporal standard deviation of " clear sky" albedos in visible */
00818                                 /* wavelenght (670nm over land or 865 over sea) */                                                              
00819 #define R3_M_AVISMCLEAR 15      /* monthly mean of " estimated clear sky" albedos in visible wavelenght */
00820                                 /* (670nm over land or 865 over sea) */
00821 #define R3_M_ASW        16      /* monthly mean of albedos , for SW */
00822 #define R3_S_ASW        17      /* temporal standard deviation  of albedos , for SW */
00823 #define R3_M_ASWCLEAR   18      /* monthly mean of" clear sky"  albedos , for SW */
00824 #define R3_S_ASWCLEAR   19      /* temporal standard deviation  of" clear sky" albedos , for SW */
00825 #define R3_M_ASWMCLEAR  20      /* monthly mean of" estimated clear sky"  albedos , for SW */
00826 #define R3_M_FINC       21      /* monthly mean the incidental diurnal flux */
00827 #define R3_M_FREFL      22      /* monthly mean the reflected diurnal flux */
00828 #define R3_M_FREFLCLEAR 23      /* monthly mean the "clear sky" reflected diurnal flux */
00829 #define R3_M_CN         24      /* monthly mean of cloud cover */
00830 #define R3_S_CN         25      /* temporal standard deviation of cloud cover */
00831 #define R3_M_CLEARCLOUD 26      /* monthly rate of indefinite pixels redistributed */
00832                                 /* "clear sky"  outside glitter*/
00833                                 /* monthly rate of indefinite pixels redistributed*/
00834                                 /* "cloudy" outside glitter*/
00835 #define R3_M_H2O        27      /* monthly mean of apparent water vapor content on clear-sky pixels */
00836 #define R3_S_H2O        28      /* temporal standard deviation of apparent water vapor content on clear-sky pixels */
00837 #define R3_M_PCLOUD     29      /* monthly mean of corrected cloud O2 pressure, */
00838                                 /* balanced with CN (on cloudy pixels)*/
00839 #define R3_S_PCLOUD     30      /* temporale standard deviation of corrected cloud O2 pressure, */
00840                                 /* balanced with CN (on cloudy pixels)*/
00841 #define R3_M_PRAY       31      /* monthly mean of cloud Rayleigh pressure (on cloudy pixels) */
00842 #define R3_S_PRAY       32      /* temporal standard deviation of cloud Rayleigh pressure (on cloudy pixels)*/
00843 #define R3_M_TAU        33      /* mean of cloud optical thickness in visible wavelenght */
00844                                 /* (670nm over land or 865 over sea) */
00845 #define R3_SR_TAU       34      /* relative temporal standard deviation of cloud optical thickness in visible wavelenght */
00846                                 /* (670nm over land or 865 over sea) */
00847 #define R3_M_TAULIQ     35      /* mean of liquid cloud optical thickness in visible wavelenght */
00848                                 /* (670nm over land or 865 over sea) */
00849 #define R3_M_TAUICE     36      /* mean of ice cloud optical thickness in visible wavelenght */
00850                                 /* (670nm over land or 865 over sea) */
00851 #define R3_M_TAUMIX     37      /* mean of mixed phase cloud optical thickness in visible wavelenght */
00852                                 /* (670nm over land or 865 over sea) */
00853 #define R3_M_ASVIS      38      /* monthly mean of spherical albedos in visible wavelenght */
00854                                 /* (670nm over land or 865 over sea) */
00855 #define R3_S_ASVIS      39      /* temporal standard deviation of spherical albedos in visible wavelenght */
00856                                 /* (670nm over land or 865 over sea) */ 
00857 #define R3_FRE_PHASE    40+R3_TAB_I + 4*R3_TAB_J        
00858                                 /* cloud phase distribution (cover percentage in 4 classes) */
00859 #define R3_FRE_CRIS     44+R3_TAB_I + 7*R3_TAB_J        
00860                                 /* ice crystal types distribution (cover percentage in 7 classes) */
00861 
00862 #endif

Generated on Thu Feb 14 2013 17:59:03 for filedata.kdevelop by  doxygen 1.7.1