ocssw
V2022
|
val_extract.h
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 the first two or last two tables respectively will be used for the interpolation If there is only one LUT in the set of it will be treated as a constant LUT The manner in which Earth View data is checked for saturation was changed Previously the raw Earth View DNs and Space View DNs were checked against the lookup table values contained in the table dn_sat The change made is to check the raw Earth and Space View DNs to be sure they are less than the maximum saturation value and to check the Space View subtracted Earth View dns against a set of values contained in the new lookup table dn_sat_ev The metadata configuration and ASSOCIATEDINSTRUMENTSHORTNAME from the MOD02HKM product The same metatdata with extensions and were removed from the MOD021KM and MOD02OBC products ASSOCIATEDSENSORSHORTNAME was set to MODIS in all products These changes are reflected in new File Specification which users may consult for exact the pow functions were eliminated in Emissive_Cal and Emissive bands replaced by more efficient code Other calculations throughout the code were also made more efficient Aside from a few round off there was no difference to the product The CPU time decreased by about for a day case and for a night case A minor bug in calculating the uncertainty index for emissive bands was corrected The frame index(0-based) was previously being used the frame number(1-based) should have been used. There were only a few minor changes to the uncertainty index(maximum of 1 digit). 3. Some inefficient arrays(Sigma_RVS_norm_sq) were eliminated and some code lines in Preprocess_L1A_Data were moved into Process_OBCEng_Emiss. There were no changes to the product. Required RAM was reduced by 20 MB. Now
Master structure containing options, document strings, child parsers, and text filters....
Definition: argpar.h:398
Definition: val_extract.h:253
Definition: val_extract.h:273
char ** count_flags
If given, count all pixels with ANY of these flags. This is added to count_flags_mask.
Definition: val_extract.h:156
Definition: val_extract.h:241
int start_line
Either center line for a box extract or the beginning line for regions.
Definition: val_extract.h:116
Definition: argpar.c:41
Definition: val_extract.h:233
double * l2qc_thresholds
If given, use these thresholds for the L2QC process, aborting processing if any are thresholds are su...
Definition: val_extract.h:164
Passed into the library function to control the processing. Many of the fields will be unspecified.
Definition: val_extract.h:103
void val_extract_clear_args(val_extract_arguments *arguments)
Clear an argument struct to make it suitable for using the library without using argpar.
Definition: val_extract.c:127
const char * val_extract_api_version()
Returns a string representation of the library's implemented API version number, without a label.
Definition: val_extract.c:2635
bool geospatial_only
Only process geospatial variables, those with lines and pixels as the only dimensions.
Definition: val_extract.h:136
char ** ignore_flags
If given, ignore all pixels with ANY of these flags. This is added to ignore_flags_mask.
Definition: val_extract.h:149
Given to val_extract_arguments, these contain the valid ranges, inclusive, of variables....
Definition: val_extract.h:87
double optics_threshold
If given, OPTICS algorithm threshold for preventing reaching over data gaps. Lower = stricter.
Definition: val_extract.h:189
size_t nc_get_region_dim_size(nc_region *region, int dim_index)
Definition: val_extract.c:2683
void * user_input
If given, this is passed to the val_extract_parser for arbitrary use by the user.
Definition: val_extract.h:195
A simple logger, capable of dispatching log events to multiple end points.
int(* val_extract_parser)(int key, void *nc_input, void *user_input)
Pointer to a callback function to call for each argument parsed.
Definition: val_extract.h:79
bool geospatial_to_double
Read all geospatial variables as doubles, regardless of original type, useful for avoiding copy-and-p...
Definition: val_extract.h:139
double start_lon
Either center longitude for a box extract or the beginning longitude for regions.
Definition: val_extract.h:131
uint32_t count_flags_mask
If given, count all pixels with ANY of these flag bits sets.
Definition: val_extract.h:154
argpar val_extract_argpar
argpar structure used for making programs that inherit options from this library.
Definition: val_extract.c:523
bool lat_and_lon
Whether to use latitudes and longitudes instead of lines and pixels.
Definition: val_extract.h:125
int start_pixel
Either center pixel for a box extract or the beginning pixel for regions.
Definition: val_extract.h:120
uint32_t ignore_flags_mask
If given, ignore all pixels with ANY of these flag bits sets.
Definition: val_extract.h:147
bool line_and_pixel
Whether to use lines and pixels instead of latitudes and longitudes.
Definition: val_extract.h:114
char ** l2qc_flags
If given, use these flags for the L2QC process, paired with the l2qc_thresholds input.
Definition: val_extract.h:161
void unflatten_index(int index, int ndims, const int *dims, int *result)
Given dimension lengths from an nc_file and a one dimensional index, find the corresponding n-dimensi...
Definition: val_extract.c:2604
A simple dictionary library for storing strings.
int val_extract_clean(val_extract_arguments *arguments)
Clean up stuff malloc'd by the argpar callback. Should be called at the end of processing if val_extr...
Definition: val_extract.c:2540
val_extract_parser val_extract_parser
Required, this is the function that is given the nc_region and nc_var structures after they are proce...
Definition: val_extract.h:193
int val_extract(val_extract_arguments *arguments)
Process a small section of a Level-2 NetCDF file.
Definition: val_extract.c:589
const char * val_extract_version()
Returns a string representation of the library's version number, without a label.
Definition: val_extract.c:2632
Library for reading command-line arguments in the form of key=value.
Definition: val_extract.h:266
double start_lat
Either center latitude for a box extract or the beginning latitude for regions.
Definition: val_extract.h:127
char ** skip_stats
If given, override default list of products where statistics are not meaningful (such as l2_flags).
Definition: val_extract.h:175
Definition: val_extract.h:237
val_extract_valid_range * valid_ranges
If given, use these to filter variables' data used for statistics.
Definition: val_extract.h:169