OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_product_table.h
Go to the documentation of this file.
1 #ifndef GET_PRODUCT_TABLE
2 #define GET_PRODUCT_TABLE
3 
4 #include <stdint.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 
18 typedef struct product_table_str {
19  char *description;
20  char *name;
21  char *units;
22  char *scaling;
23  char *palette;
24  float min;
25  float max;
26  char *precision;
27 } product_table_t;
28 
29 
41 product_table_t* get_product_table(char *file_name, int32_t *num_entries);
42 
49 void free_product_table(product_table_t* table, int32_t num_entries);
50 
51 
60 int32_t search_product_table(product_table_t* table, int32_t num_entries, char* name);
61 
62 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif
an array had not been initialized Several spelling and grammar corrections were which is read from the appropriate MCF the above metadata values were hard coded A problem calculating the average background DN for SWIR bands when the moon is in the space view port was corrected The new algorithm used to calculate the average background DN for all reflective bands when the moon is in the space view port is now the same as the algorithm employed by the thermal bands For non SWIR changes in the averages are typically less than Also for non SWIR the black body DNs remain a backup in case the SV DNs are not available For SWIR the changes in computed averages were larger because the old which used the black body suffered from contamination by the micron leak As a consequence of the if SV DNs are not available for the SWIR the EV pixels will not be the granule time is used to identify the appropriate tables within the set given for one LUT table(e.g. m1) to be used for interpolation. The table values will be linearly interpolated using the tables corresponding to the node times bracketing the granule time. If the granule time falls before the time of the first node or after the time of the last node
product_table_t * get_product_table(char *file_name, int32_t *num_entries)
void free_product_table(product_table_t *table, int32_t num_entries)
int32_t search_product_table(product_table_t *table, int32_t num_entries, char *name)