ATS_AR__2P version 0

ATS_AR__2P_v0

root type

binary record
idfield namedefinition
0mph
ascii record "MPH"size: 1247
1sph
ascii record "AATSR_SPH_short_v0"size: 1315
2dsd
ascii array[dim_0]
dim_0: $num_dsd
ascii record "DSD"size: 280
3sea_st_50_km_cell_mds
binary array[dim_0]
SST record 50 km cell MDS

dim_0: $num_dsr[0]
binary record "ATS_AR__2P_MDSR_sst_large_aatsr_rec_data"size: 50
4sea_st_17_km_cell_mds
binary array[dim_0]
SST record 17 km cell MDS

dim_0: $num_dsr[1]
binary record "ATS_AR__2P_MDSR_sst_small_aatsr_rec_data"size: 38
5sea_st_10_min_cell_mds
binary array[dim_0]
SST record 10 arc minute cell MDS

dim_0: $num_dsr[2]
binary record "ATS_AR__2P_MDSR_sst_small_aatsr_rec_data"size: 38
6sea_st_30_min_cell_mds
binary array[dim_0]
SST record 30 arc minute cell MDS

dim_0: $num_dsr[3]
binary record "ATS_AR__2P_MDSR_sst_large_aatsr_rec_data"size: 50
7land_st_50_km_cell_mds
binary array[dim_0]
LST record 50 km cell MDS

dim_0: $num_dsr[4]
binary record "ATS_AR__2P_MDSR_lst_large_aatsr_rec_data"size: 50
8land_st_17_km_cell_mds
binary array[dim_0]
LST record 17 km cell MDS

dim_0: $num_dsr[5]
binary record "ATS_AR__2P_MDSR_lst_small_aatsr_rec_data"size: 38
9land_st_10_min_cell_mds
binary array[dim_0]
LST record 10 arc minute cell MDS

dim_0: $num_dsr[6]
binary record "ATS_AR__2P_MDSR_lst_small_aatsr_rec_data"size: 38
10land_st_30_min_cell_mds
binary array[dim_0]
LST record 30 arc minute cell MDS

dim_0: $num_dsr[7]
binary record "ATS_AR__2P_MDSR_lst_large_aatsr_rec_data"size: 50
11bt_toa_land_50_km_cell_mds
binary array[dim_0]
BT/TOA Land record 50 km cell MDS

dim_0: $num_dsr[8]
binary record "ATS_AR__2P_MDSR_lr_large_aatsr_rec_data"size: 250
12bt_toa_land_17_km_cell_mds
binary array[dim_0]
BT/TOA Land record 17 km cell MDS

dim_0: $num_dsr[9]
binary record "ATS_AR__2P_MDSR_lr_small_aatsr_rec_data"size: 138
13bt_toa_land_10_min_cell_mds
binary array[dim_0]
BT/TOA Land record 10 arc minute cell MDS

dim_0: $num_dsr[10]
binary record "ATS_AR__2P_MDSR_lr_small_aatsr_rec_data"size: 138
14bt_toa_land_30_min_cell_mds
binary array[dim_0]
BT/TOA Land record 30 arc minute cell MDS

dim_0: $num_dsr[11]
binary record "ATS_AR__2P_MDSR_lr_large_aatsr_rec_data"size: 250
15bt_toa_sea_50_km_cell_mds
binary array[dim_0]
BT/TOA Sea record 50 km cell MDS

dim_0: $num_dsr[12]
binary record "ATS_AR__2P_MDSR_sr_large_aatsr_rec_data"size: 234
16bt_toa_sea_17_km_cell_mds
binary array[dim_0]
BT/TOA Sea record 17 km cell MDS

dim_0: $num_dsr[13]
binary record "ATS_AR__2P_MDSR_sr_small_aatsr_rec_data"size: 122
17bt_toa_sea_10_min_cell_mds
binary array[dim_0]
BT/TOA Sea record 10 arc minute cell MDS

dim_0: $num_dsr[14]
binary record "ATS_AR__2P_MDSR_sr_small_aatsr_rec_data"size: 122
18bt_toa_sea_30_min_cell_mds
binary array[dim_0]
BT/TOA Sea record 30 arc minute cell MDS

dim_0: $num_dsr[15]
binary record "ATS_AR__2P_MDSR_sr_large_aatsr_rec_data"size: 234

detection rule

This product definition is applicable if a product matches the following rule:

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "ATS_AR__2P" and
bytes(/,95,23) == "PO-TN-RAL-GS-10003_12/1"

product variables

namesizeinitialisation
num_dsd$num_dsd = int(/mph/num_dsd)
num_ds$num_ds = 16
ds_to_dsd_index[$num_ds]$ds_to_dsd_index[0] = index(/dsd, str(./ds_name) == "SEA_ST_50_KM_CELL_MDS       ");
$ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "SEA_ST_17_KM_CELL_MDS       ");
$ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "SEA_ST_10_MIN_CELL_MDS      ");
$ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "SEA_ST_30_MIN_CELL_MDS      ");
$ds_to_dsd_index[4] = index(/dsd, str(./ds_name) == "LAND_ST_50_KM_CELL_MDS      ");
$ds_to_dsd_index[5] = index(/dsd, str(./ds_name) == "LAND_ST_17_KM_CELL_MDS      ");
$ds_to_dsd_index[6] = index(/dsd, str(./ds_name) == "LAND_ST_10_MIN_CELL_MDS     ");
$ds_to_dsd_index[7] = index(/dsd, str(./ds_name) == "LAND_ST_30_MIN_CELL_MDS     ");
$ds_to_dsd_index[8] = index(/dsd, str(./ds_name) == "BT_TOA_LAND_50_KM_CELL_MDS  ");
$ds_to_dsd_index[9] = index(/dsd, str(./ds_name) == "BT_TOA_LAND_17_KM_CELL_MDS  ");
$ds_to_dsd_index[10] = index(/dsd, str(./ds_name) == "BT_TOA_LAND_10_MIN_CELL_MDS ");
$ds_to_dsd_index[11] = index(/dsd, str(./ds_name) == "BT_TOA_LAND_30_MIN_CELL_MDS ");
$ds_to_dsd_index[12] = index(/dsd, str(./ds_name) == "BT_TOA_SEA_50_KM_CELL_MDS   ");
$ds_to_dsd_index[13] = index(/dsd, str(./ds_name) == "BT_TOA_SEA_17_KM_CELL_MDS   ");
$ds_to_dsd_index[14] = index(/dsd, str(./ds_name) == "BT_TOA_SEA_10_MIN_CELL_MDS  ");
$ds_to_dsd_index[15] = index(/dsd, str(./ds_name) == "BT_TOA_SEA_30_MIN_CELL_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"), 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)