ocssw
V2022
|
l1cgen.cpp
Go to the documentation of this file.
85 //**********************************************************************************************************-
158 //**********************************************************************************************************************
202 clo_addOption(optionList, "qaa_wave", CLO_TYPE_INT, NULL, "sensor wavelengths for QAA algorithm");
208 clo_addOption(optionList, "gas_opt", CLO_TYPE_INT, "1", "gaseous transmittance bitmask selector");
219 clo_addOption(optionList, "filter_file", CLO_TYPE_IFILE, "$OCDATAROOT/sensor/sensor_filter.dat", "\n data file for input filtering");
220 clo_addOption(optionList, "absaer_opt", CLO_TYPE_INT, "0", "absorbing aerosol flagging option\n"
224 clo_addOption(optionList, "flh_base_wavelengths", CLO_TYPE_FLOAT, NULL, "flh baseline wavelengths");
225 clo_addOption(optionList, "flh_height_wavelength", CLO_TYPE_FLOAT, "-1.0", "flh height wavelength");
226 clo_addOption(optionList, "gas_transmittance_file", CLO_TYPE_IFILE, NULL, "gaseous transmittance file");
227 clo_addOption(optionList, "watervapor_bands", CLO_TYPE_INT, NULL, "bands used for calculating water vapor based on 3-band depth approach");
523 cout << "#badgeo " << binl1c.badgeo << "#inpix: " << binl1c.inpix << "#outpix: " << binl1c.outpix
int32 l1file(int32 sdfid, int32 *nsamp, int32 *nscans, int16 *dtynum)
Definition: l1stat_chk.c:586
clo_option_t * clo_addOption(clo_optionList_t *list, const char *key, enum clo_dataType_t dataType, const char *defaultVal, const char *desc)
Definition: clo.c:684
Utility functions for allocating and freeing three-dimensional arrays of various types.
int meta_l1c_altvar(bin_str *binl1c, NcFile *nc_output)
Definition: l1c_latlongrid.cpp:275
int rmse_l1c_alt(filehandle *l1file, bin_str *binl1c, l1str *l1rec, short **gdindex)
Definition: l1c_latlongrid.cpp:251
void unix2ymds(double usec, int16_t *year, int16_t *mon, int16_t *day, double *secs)
Definition: unix2ymds.c:8
int parallax(filehandle *l1file, const char *l1c_anc, const char *l1c_grid, l1str *l1rec, bin_str *binl1c, short **gdindex, NcFile *nc_output, int32_t sline, int firstcall)
Definition: l1c_latlongrid.cpp:1513
Definition: filetype.h:69
virtual int32_t l1c_inputmain(int argc, char **argv, L1C_input *l1cinput, l1c_filehandle *l1cfile, const char *prog, const char *version)
Definition: l1c_input.cpp:579
Definition: l2_str.h:18
int meta_l1c_bin(filehandle *l1file, bin_str *binl1c, NcFile *nc_output)
Definition: l1c_latlongrid.cpp:326
Definition: clo.h:126
Definition: l1c_filehandle.h:25
int check_l1c_time(const char *l1b_file, const char *l1c_grid, bin_str *binl1c)
Definition: l1c_latlongrid.cpp:1880
Utility functions for allocating and freeing four-dimensional arrays of various types.
void set_global_attrs(NcFile *outfile, string history, string doi, string pversion)
Definition: global_attrs.cpp:40
virtual int32_t open_l1atol1c3(L1C_input *l1cinput, l1c_filehandle *l1cfile)
Definition: l1c.cpp:1061
virtual int32_t add_proc_group_l1c(L1C_input *l1cinput, l1c_filehandle *l1cfile, const char *filename)
Definition: l1c.cpp:79
Definition: l1c_latlongrid.h:15
Definition: l1c.cpp:71
Utility functions for allocating and freeing two-dimensional arrays of various types.
virtual int32_t l1_cloud_correct(L1C_input *l1cinput, l1c_filehandle *l1cfile)
Definition: l1c.cpp:245
Definition: l1c_str.h:19
int meta_l1c_full(filehandle *l1file, bin_str *binl1c, const char *l1c_grid, NcFile *nc_output)
Definition: l1c_latlongrid.cpp:529
virtual int32_t load_l1c_filehandle4(l1c_filehandle *l1cfile, L1C_input *l1cinput)
Definition: l1c.cpp:3479
u5 which has been done in the LOCALGRANULEID metadata should have an extension NRT It is requested to identify the NRT production Changes from v6 which may affect scientific the sector rotation may actually occur during one of the scans earlier than the one where it is first reported As a the b1 values are about the LOCALGRANULEID metadata should have an extension NRT It is requested to identify the NRT to fill pixels affected by dead subframes with a special value Output the metadata of noisy and dead subframe Dead Subframe EV and Detector Quality Flag2 Removed the function call of Fill_Dead_Detector_SI to stop interpolating SI values for dead but also for all downstream products for science test only Changes from v5 which will affect scientific to conform to MODIS requirements Removed the Mixed option from the ScanType in the code because the L1A Scan Type is never Mixed Changed for ANSI C compliance and comments to better document the fact that when the HDF_EOS metadata is stricly the and products are off by and in the track respectively Corrected some misspelling of RCS swir_oob_sending_detector to the Reflective LUTs to enable the SWIR OOB correction detector so that if any of the sending detectors becomes noisy or non near by good detectors from the same sending band can be specified as the substitute in the new look up table Code change for adding an additional dimension of mirror side to the Band_21_b1 LUT to separate the coefficient of the two mirror sides for just like other thermal emissive so that the L1B code can calibrate Band scan to scan with mirror side dependency which leads better calibration result Changes which do not affect scientific when the EV data are not provided in this Crosstalk Correction will not be performed to the Band calibration data Changes which do not affect scientific and BB_500m in L1A Logic was added to turn off the or to spatial aggregation processes and the EV_250m_Aggr1km_RefSB and EV_500m_Aggr1km_RefSB fields were set to fill values when SDSs EV_250m and EV_500m are absent in L1A file Logic was added to skip the processing and turn off the output of the L1B QKM and HKM EV data when EV_250m and EV_500m are absent from L1A In this the new process avoids accessing and reading the and L1A EV skips and writing to the L1B and EV omits reading and subsampling SDSs from geolocation file and writing them to the L1B and omits writing metadata to L1B and EV and skips closing the L1A and L1B EV and SDSs Logic was added to turn off the L1B OBC output when the high resolution OBC SDSs are absent from L1A This is accomplished by skipping the openning the writing of metadata and the closing of the L1B OBC hdf which is Bit in the scan by scan bit QA has been changed Until now
Definition: HISTORY.txt:361
int search_l1c(filehandle *l1file, l1str *l1rec, bin_str *binl1c, short **gdindex)
Definition: l1c_latlongrid.cpp:2341
Definition: l1c_input.h:24
void l1_load_options(clo_optionList_t *list, filehandle *l1file)
Definition: l1_options.c:255
void l1_read_default_files(clo_optionList_t *list, filehandle *l1file, const char *ifile)
Definition: l1_options.c:200
short ** allocate2d_short(size_t h, size_t w)
Allocate a two-dimensional array of type short of a given size.
Definition: allocate2d.c:79
double ymds2unix(short year, short month, short day, double secs)
virtual int32_t l1c_usage(const char *prog, const char *version)
Definition: l1c_input.cpp:71
int bintime_l1c(filehandle *l1file, l1str *l1rec, bin_str *binstr, short **gdindex, double scantime, NcFile *nc_output)
Definition: l1c_latlongrid.cpp:1447
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")
int bin_l1c(filehandle *l1file, l1str *l1rec, bin_str *binl1c, short **gdindex, NcFile *nc_output)
Definition: l1c_latlongrid.cpp:1666