Go to the documentation of this file.
289 #define TDLUT_INVALID -1
290 #define TDLUT_CONSTANT 0
291 #define TDLUT_STEPFUNCTION 1
292 #define TDLUT_PIECEWISE_LINEAR 2
293 #define TDLUT_ALGORITHM_ATTR_NAME "algorithm"
294 #define TDLUT_STEPFUNCTION_TIMES "times"
295 #define TDLUT_PIECEWISE_LINEAR_TIMES "times"
340 #define PGE02_VERSION "6.2.1_obpg"
351 #define MAX_SERIAL_NUMBER_BUFFER 31
352 #define MAX_PGE_VERSION_BUFFER 11
353 #define MAX_MCST_VERSION_BUFFER 21
354 #define MAX_ASSOCIATEDPLATFORMSHORTNAME_BUFFER 21
355 #define MAX_ALGORITHMPACKAGEACCEPTANCEDATE_BUFFER 11
356 #define MAX_ALGORITHMPACKAGEMATURITYCODE_BUFFER 15
357 #define MAX_MISSION_PHASE_BUFFER 15
358 #define NUM_DN_VALUES 4096
359 #define NUM_PRI_RED_SYSTEMS 2
360 #define NUM_BITS_IN_UINT8 8
362 #define NUM_1ST_ORDER_COEFFS 2
363 #define NUM_2ND_ORDER_COEFFS 3
364 #define NUM_4TH_ORDER_COEFFS 5
370 #define EVAL_4TH_ORDER_POLYNOMIAL(p,a,x) \
371 p = a[0] + x * (a[1] + x * (a[2] + x * (a[3] + x * a[4])));
379 #define EVAL_2ND_ORDER_POLYNOMIAL(p,a,x,y) \
380 p = a[0] + x * a[1] + y * a[2];
386 #define NUM_SWIR_BANDS 4
387 #define MAX_NUM_SWIR_SUBSAMPLES 2
388 #define MAX_DETECTORS_PER_SWIR_BAND 20
389 #define MAX_SWIR_BAND_EV_FRAMES 2708
390 #define MAX_NUM_SWIR_RSR_WL 27
401 #define NUM_AQUA_BB_SAT_BANDS 3
403 #define NUM_PC_XT_BANDS 5
404 #define NUM_PC_XT_PARAMETERS 4
405 #define MAX_NUM_RSR_vs_LAMBDA 66
406 #define NUM_a0_vs_T_inst_COEFF 3
407 #define NUM_a2_vs_T_inst_COEFF 3
414 #define NUM_T_MIR_THERMISTORS 2
415 #define NUM_T_INS_THERMISTORS 4
416 #define INDEX_TP_AO_SMIR_OBJ 0
417 #define INDEX_TP_AO_LWIR_OBJ 1
418 #define INDEX_TP_AO_SMIR_LENS 2
419 #define INDEX_TP_AO_LWIR_LENS 3
421 #define NUM_T_CAV_THERMISTORS 4
422 #define INDEX_TP_MF_CALBKHD_SR 0
423 #define INDEX_TP_SR_SNOUT 1
424 #define INDEX_TP_MF_Z_BKHD_BB 2
425 #define INDEX_TP_MF_CVR_OP_SR 3
427 #define NUM_U2_FRAME 7
428 #define NUM_RSB_RVS_COEFFS 5
433 #define NUM_MOON_OFFSET_LIMITS 4
434 #define NUM_ATTITUDE_ANGLES 3
455 #define GLOBAL_ATTRIBUTE_LUT 0
463 #define PGE_VERSION_LUT_NAME "PGE_Version"
464 #define MCST_VERSION_LUT_NAME "MCST_Version"
470 #define REFL_SERIAL_NUMBER_LUT_NAME "Serial Number of Reflective LUT"
471 #define M0_LUT_NAME "m0"
472 #define M1_LUT_NAME "m1"
473 #define DN_STAR_MAX_LUT_NAME "dn_star_Max"
474 #define DN_STAR_MIN_LUT_NAME "dn_star_Min"
475 #define K_INST_LUT_NAME "K_inst"
476 #define K_FPA_LUT_NAME "K_FPA"
477 #define T_INST_REF_LUT_NAME "T_inst_ref"
478 #define T_FPA_REF_LUT_NAME "T_FPA_ref"
479 #define RVS_RSB_LUT_NAME "RVS_RefSB"
491 #define DN_OBC_1ST_FRAME_LUT_NAME "DN_obc_avg_first_frame_to_use"
492 #define DN_OBC_NUM_FRAMES_LUT_NAME "DN_obc_avg_number_of_frames_to_use"
493 #define SWIR_CORRECTION_SWITCH_LUT_NAME "SWIR_OOB_correction_switch"
494 #define X_OOB_0_LUT_NAME "X_OOB_0"
495 #define X_OOB_1_LUT_NAME "X_OOB_1"
496 #define X_OOB_2_LUT_NAME "X_OOB_2"
497 #define RSB_SPECIFIED_UNCERTAINTY_LUT_NAME "RSB_specified_uncertainty"
498 #define RSB_UI_SCALING_FACTOR_LUT_NAME "RSB_UI_scaling_factor"
499 #define E_SUN_OVER_PI_LUT_NAME "E_sun_over_pi"
500 #define RSB_SV_DN_MOON_INCLUDE_FRAMES_LUT_NAME "RSB_SV_DN_moon_include_frames"
501 #define DN_SAT_EV_LUT_NAME "dn_sat_ev"
502 #define B26_B5_CORR_LUT_NAME "B26_B5_Corr"
503 #define B26_B5_CORR_SWITCH_LUT_NAME "B26_B5_Corr_Switch"
504 #define B26_B5_FRAME_OFFSET_LUT_NAME "B26_B5_Frame_Offset"
505 #define SWIR_CORR_SENDING_BAND_LUT_NAME "SWIR_OOB_corr_sending_band"
506 #define SWIR_CORR_SENDING_DETECTOR_LUT_NAME "SWIR_OOB_corr_sending_detector"
508 #define U1_LUT_NAME "u1"
509 #define U2_LUT_NAME "u2"
510 #define U3_LUT_NAME "u3"
511 #define U4_LUT_NAME "u4"
512 #define U2_FRAMES_LUT_NAME "u2_frames"
513 #define SWIR_UI_FACTOR_LUT_NAME "swir_ui_factor"
519 #define EMISS_SERIAL_NUMBER_LUT_NAME "Serial Number of Emissive LUT"
520 #define EPSILON_BB_LUT_NAME "epsilon_bb"
521 #define EPSILON_CAV_LUT_NAME "epsilon_cav"
522 #define DELTA_T_BB_BETA_LUT_NAME "delta_T_bb_beta"
523 #define DELTA_T_BB_DELTA_LUT_NAME "delta_T_bb_delta"
524 #define PCX_TALK_LUT_NAME "PC_XT"
525 #define RVS_TEB_LUT_NAME "RVS_TEB"
526 #define RVS_BB_SV_FRAME_NO_LUT_NAME "RVS_BB_SV_Frame_No"
527 #define RSR_LUT_NAME "RSR"
528 #define WAVELENGTH_LUT_NAME "WAVELENGTH"
529 #define NUM_WL_INCREMENT_LUT_NAME "NWL"
530 #define CALIB_A0_LUT_NAME "A0"
531 #define CALIB_A2_LUT_NAME "A2"
540 #define T_INS_FUNCTION_FLAG_LUT_NAME "T_ins_function_flag"
541 #define T_INS_DEFAULT_LUT_NAME "T_ins_default"
542 #define T_INS_OFFSET_LUT_NAME "T_ins_offset"
543 #define T_CAV_FUNCTION_FLAG_LUT_NAME "T_cav_function_flag"
544 #define T_CAV_DEFAULT_LUT_NAME "T_cav_default"
545 #define T_MIR_FUNCTION_FLAG_LUT_NAME "T_mir_function_flag"
546 #define T_MIR_DEFAULT_LUT_NAME "T_mir_default"
547 #define BB_WEIGHT_LUT_NAME "BB_Weight"
548 #define BB_DN_1ST_FRAME_LUT_NAME "BB_DN_first_frame_to_use"
549 #define BB_DN_NUM_FRAMES_LUT_NAME "BB_DN_number_of_frames_to_use"
550 #define SV_DN_1ST_FRAME_LUT_NAME "SV_DN_first_frame_to_use"
551 #define SV_DN_NUM_FRAMES_LUT_NAME "SV_DN_number_of_frames_to_use"
552 #define SV_DN_MOON_INCLUDE_FRAMES_LUT_NAME "SV_DN_moon_include_frames"
553 #define PCX_CORRECTION_SWITCH_LUT_NAME "PCX_correction_switch"
554 #define OVERLAP_SCANS_B1_LUT_NAME "num_overlap_scans_b1"
555 #define BAND_21_B1_LUT_NAME "Band_21_b1"
556 #define L_MIN_LUT_NAME "L_Min"
557 #define L_MAX_LUT_NAME "L_Max"
558 #define TEB_SPECIFIED_UNCERTAINTY_LUT_NAME "TEB_specified_uncertainty"
559 #define TEB_UI_SCALING_FACTOR_LUT_NAME "TEB_UI_scaling_factor"
560 #define BB_T_SAT_SWITCH_AQUA_LUT_NAME "BB_T_sat_switch_aqua"
561 #define BB_T_SAT_AQUA_LUT_NAME "BB_T_sat_aqua"
562 #define BB_T_SAT_DEFAULT_B1_BASELINE_AQUA_LUT_NAME "BB_T_sat_default_b1_baseline_aqua"
563 #define BB_T_SAT_DEFAULT_B1_C1_AQUA_LUT_NAME "BB_T_sat_default_b1_c1_aqua"
564 #define BB_T_SAT_DEFAULT_B1_TLWIR_BASELINE_AQUA_LUT_NAME "BB_T_sat_default_b1_Tlwir_baseline_aqua"
566 #define SIGMA_A0_LUT_NAME "sigma_a0"
567 #define SIGMA_A2_LUT_NAME "sigma_a2"
568 #define SIGMA_RVS_EV_LUT_NAME "sigma_RVS_EV"
569 #define SIGMA_EPSILON_BB_LUT_NAME "sigma_epsilon_BB"
570 #define SIGMA_EPSILON_CAV_LUT_NAME "sigma_epsilon_CAV"
571 #define SIGMA_L_LAMBDA_LUT_NAME "sigma_L_lambda"
572 #define SIGMA_L_TBB_LUT_NAME "sigma_L_Tbb"
573 #define SIGMA_L_TSM_LUT_NAME "sigma_L_Tsm"
574 #define SIGMA_L_TCAV_LUT_NAME "sigma_L_Tcav"
575 #define SIGMA_B1_BAND21_LUT_NAME "sigma_b1_B21"
576 #define PCX_UI_FACTOR_LUT_NAME "pcx_ui_factor"
582 #define QA_SERIAL_NUMBER_LUT_NAME "QA serial number"
583 #define PLATFORM_SHORT_NAME_LUT_NAME "ASSOCIATEDPLATFORMSHORTNAME"
584 #define PACKAGE_ACCEPT_DATE_LUT_NAME "ALGORITHMPACKAGEACCEPTANCEDATE"
585 #define PACKAGE_MATURITY_CODE_LUT_NAME "ALGORITHMPACKAGEMATURITYCODE"
586 #define DET_QUAL_FLAG_VALS_LUT_NAME "Detector Quality Flag Values"
587 #define DET_QUAL_FLAG2_VALS_LUT_NAME "Detector Quality Flag2 Values"
588 #define MOON_OFFSET_LIMITS_LUT_NAME "Moon Offset Limits"
589 #define MISSION_PHASE_LUT_NAME "mission phase"
590 #define CONTROL_OPTIONS_LUT_NAME "Control options"
591 #define BASE_VARI_VISUAL_FPA_LUT_NAME "visual FPA base variance"
592 #define BASE_VARI_NIR_FPA_LUT_NAME "NIR FPA base variance"
593 #define BB_TEMP_VARIANCE_LUT_NAME "T_BB_Variance"
594 #define BB_AVG_TEMP_VAR_LUT_NAME "BB Average Temperature Variance"
595 #define LWIR_FPA_TEMP_VAR_LUT_NAME "LWIR FPA Temperature Variance"
596 #define MWIR_FPA_TEMP_VAR_LUT_NAME "MWIR FPA Temperature Variance"
597 #define MIR_SIDE_1_TEMP_VAR_LUT_NAME "MirrorSide 1 Temperature Variance"
598 #define MIR_SIDE_2_TEMP_VAR_LUT_NAME "MirrorSide 2 Temperature Variance"
599 #define MIR_AVG_TEMP_VAR_LUT_NAME "Mirror Average Temperature Variance"
600 #define INST_TEMP_VAR_LUT_NAME "Instrument Temperature Variance"
601 #define CAVITY_TEMP_VAR_LUT_NAME "Cavity Temperature Variance"
602 #define EMISS_NEdL_LUT_NAME "NEdL"
603 #define CALIB_A1_LUT_NAME "a1"
604 #define ROLL_THRESHOLD_LUT_NAME "Spacecraft_Roll_Threshold_Angle"
605 #define PITCH_THRESHOLD_LUT_NAME "Spacecraft_Pitch_Threshold_Angle"
606 #define YAW_THRESHOLD_LUT_NAME "Spacecraft_Yaw_Threshold_Angle"
883 char AssociatedPlatformShortname
885 char AlgorithmPackageAcceptanceDate
887 char AlgorithmPackageMaturityCode
986 float64 data_collection_TAI_time,
999 float64 data_collection_TAI_time,
1008 float64 data_collection_TAI_time,
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 tables
#define MAX_SAMPLES_PER_BAND
#define NUM_AQUA_BB_SAT_BANDS
#define MAX_NUM_SWIR_SUBSAMPLES
#define NUM_T_INS_THERMISTORS
#define NUM_2ND_ORDER_COEFFS
#define MAX_NUM_RSR_vs_LAMBDA
int16 SWIR_correction_switch
emiss_QA_tables_t emiss_QA_tables
#define MAX_ALGORITHMPACKAGEMATURITYCODE_BUFFER
int8 PCX_correction_switch
int32 TDLUT_GetAlgorithm(int32 sd_id, char *name)
PGSt_SMF_status Expand_BDSM_LUT(void *data, void **data_new, int32 data_type, int32 lead_dim, int32 *n_bytes)
LUT_Definition_t refl_luts[]
refl_QA_tables_t refl_QA_tables
SWIR_correction_tables_t SWIR_correction_tables
LUT_Definition_t emiss_luts[]
int16 BB_DN_number_of_frames_to_use
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending wavelength
int8 BB_T_sat_switch_aqua
const int NUM_MIRROR_SIDES
PGSt_SMF_status Read_QA_Tables(L1A_granule_t *, QA_tables_t *)
PGSt_SMF_status TDLUT_ReadPiecewiseLinearFunction(int32 sd_id, char *name, int32 data_type, int32 rank, int32 *dims, float64 data_collection_TAI_time, void *data)
#define NUM_EMISSIVE_DETECTORS
#define MAX_MISSION_PHASE_BUFFER
int16 SV_DN_first_frame_to_use
#define DETECTORS_PER_1KM_BAND
int16 SV_DN_moon_include_frames
PGSt_SMF_status Read_L1B_SDS_LUT(int32 sd_id, char *name, int32 data_type, int32 rank, int32 *dims, float64 data_collection_TAI_time, void *data)
PGSt_SMF_status Read_Refl_Tables(L1A_granule_t *, refl_tables_t *)
#define NUM_BITS_IN_UINT8
#define NUM_a2_vs_T_inst_COEFF
#define NUM_MOON_OFFSET_LIMITS
#define MAX_SERIAL_NUMBER_BUFFER
int16 SV_DN_number_of_frames_to_use
#define MAX_DETECTORS_PER_SWIR_BAND
int16 DN_obc_avg_number_of_frames_to_use
float32 yaw_threshold_angle
const int NUM_REFLECTIVE_BANDS
#define NUM_1ST_ORDER_COEFFS
#define NUM_HIGH_RESOLUTION_SUBFRAMES
#define NUM_T_MIR_THERMISTORS
#define NUM_HIGH_RESOLUTION_DETECTORS
PGSt_SMF_status TDLUT_ReadStepFunction(int32 sd_id, char *name, int32 data_type, int32 rank, int32 *dims, float64 data_collection_TAI_time, void *data)
int16 BB_DN_first_frame_to_use
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
@ BAD_SCAN_QUALITY_CONTROL
int16 SWIR_corr_sending_band
float32 roll_threshold_angle
float32 pitch_threshold_angle
LUT_Definition_t qa_luts[]
int32 BDSM_index(char *ascii_file)
PGSt_SMF_status Read_Emiss_Tables(L1A_granule_t *, emiss_tables_t *)
int16 DN_obc_avg_first_frame_to_use
Extra metadata that will be written to the HDF4 file l2prod rank
#define NUM_a0_vs_T_inst_COEFF
#define MAX_MCST_VERSION_BUFFER
#define NUM_REFLECTIVE_DETECTORS
#define NUM_T_CAV_THERMISTORS
const int NUM_FOCAL_PLANES
#define NUM_RSB_RVS_COEFFS
#define NUM_PC_XT_PARAMETERS
#define MAX_DETECTORS_PER_BAND
#define MAX_ASSOCIATEDPLATFORMSHORTNAME_BUFFER
const int NUM_EMISSIVE_BANDS
int16 num_overlap_scans_b1
#define MAX_ALGORITHMPACKAGEACCEPTANCEDATE_BUFFER
const int NUM_BB_THERMISTORS
float32 BB_T_sat_default_b1_Tlwir_baseline_aqua
#define MAX_PGE_VERSION_BUFFER
PGSt_SMF_status Read_Lookup_Tables(L1A_granule_t *L1A_Gran, lookup_tables_t *tables, Run_Time_Parameters_t *runtime_params)
int16 RSB_SV_DN_moon_include_frames
common_QA_tables_t common_QA_tables