binary record | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This product definition is applicable if a product matches the following rule:
bytes(/,0,8) == "PRODUCT=" and bytes(/,9,10) == "ATS_TOA_1P" and bytes(/,95,23) == "PO-TN-RAL-GS-10003_12/1" |
name | size | initialisation |
---|---|---|
num_dsd | $num_dsd = int(/mph/num_dsd) + 2 | |
num_ds | $num_ds = 26 | |
ds_to_dsd_index | [$num_ds] | $ds_to_dsd_index[0] = index(/dsd, str(./ds_name) == "SUMMARY_QUALITY_ADS "); $ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "GEOLOCATION_ADS "); $ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "SCAN_PIXEL_X_AND_Y_ADS "); $ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "NADIR_VIEW_SOLAR_ANGLES_ADS "); $ds_to_dsd_index[4] = index(/dsd, str(./ds_name) == "FWARD_VIEW_SOLAR_ANGLES_ADS "); $ds_to_dsd_index[5] = index(/dsd, str(./ds_name) == "VISIBLE_CALIB_COEFS_GADS "); $ds_to_dsd_index[6] = index(/dsd, str(./ds_name) == "NADIR_VIEW_SCAN_PIX_NUM_ADS "); $ds_to_dsd_index[7] = index(/dsd, str(./ds_name) == "FWARD_VIEW_SCAN_PIX_NUM_ADS "); $ds_to_dsd_index[8] = index(/dsd, str(./ds_name) == "11500_12500_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[9] = index(/dsd, str(./ds_name) == "10400_11300_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[10] = index(/dsd, str(./ds_name) == "03505_03895_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[11] = index(/dsd, str(./ds_name) == "01580_01640_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[12] = index(/dsd, str(./ds_name) == "00855_00875_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[13] = index(/dsd, str(./ds_name) == "00649_00669_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[14] = index(/dsd, str(./ds_name) == "00545_00565_NM_NADIR_TOA_MDS"); $ds_to_dsd_index[15] = index(/dsd, str(./ds_name) == "11500_12500_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[16] = index(/dsd, str(./ds_name) == "10400_11300_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[17] = index(/dsd, str(./ds_name) == "03505_03895_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[18] = index(/dsd, str(./ds_name) == "01580_01640_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[19] = index(/dsd, str(./ds_name) == "00855_00875_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[20] = index(/dsd, str(./ds_name) == "00649_00669_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[21] = index(/dsd, str(./ds_name) == "00545_00565_NM_FWARD_TOA_MDS"); $ds_to_dsd_index[22] = index(/dsd, str(./ds_name) == "NADIR_VIEW_CONFIDENCE_MDS "); $ds_to_dsd_index[23] = index(/dsd, str(./ds_name) == "FWARD_VIEW_CONFIDENCE_MDS "); $ds_to_dsd_index[24] = index(/dsd, str(./ds_name) == "NADIR_VIEW_CLOUD_MDS "); $ds_to_dsd_index[25] = index(/dsd, str(./ds_name) == "FWARD_VIEW_CLOUD_MDS ") |
ds_available | [$num_ds] | for i = 0 to $num_ds - 1 do $ds_available[i] = if($ds_to_dsd_index[i] != -1 and !(bytes(/dsd[$ds_to_dsd_index[i]]/filename,8) == "NOT USED") and !(bytes(/dsd[$ds_to_dsd_index[i]]/filename,7) == "MISSING"), 1, 0) |
ds_offset | [$num_ds] | for i = 0 to $num_ds - 1 do $ds_offset[i] = 8 * int(/dsd[$ds_to_dsd_index[i]]/ds_offset) |
num_dsr | [$num_ds] | for i = 0 to $num_ds - 1 do $num_dsr[i] = int(/dsd[$ds_to_dsd_index[i]]/num_dsr) |