ATS_NR__2P version 0

ATS_NR__2P_v0

root type

binary record
idfield namedefinition
0mph
ascii record "MPH"size: 1247
1sph
ascii record "AATSR_SPH_long_v0"size: 2190
2dsd
ascii array[dim_0]
dim_0: $num_dsd
ascii record "DSD"size: 280
3summary_quality_ads
binary array[dim_0]
Summary Quality ADS

dim_0: $num_dsr[0]
binary record "ATS_NR__2P_ADSR_sq_aatsr_rec_data"size: 86
4geolocation_ads
binary array[dim_0]
Grid pixel latitude and longtitude topographic corrections ADS

dim_0: $num_dsr[1]
binary record "ATS_TOA_1P_ADSR_loc_aatsr_rec_data"size: 626
5scan_pixel_x_and_y_ads
binary array[dim_0]
Scan pixel x and y ADS

dim_0: $num_dsr[2]
binary record "ATS_TOA_1P_ADSR_scan_aatsr_rec_data"size: 830
6nadir_view_solar_angles_ads
binary array[dim_0]
Nadir view solar angles ADS

dim_0: $num_dsr[3]
binary record "ATS_TOA_1P_ADSR_sa_aatsr_rec_data"size: 216
7fward_view_solar_angles_ads
binary array[dim_0]
Forward view solar angles ADS

dim_0: $num_dsr[4]
binary record "ATS_TOA_1P_ADSR_sa_aatsr_rec_data"size: 216
8nadir_view_scan_pix_num_ads
binary array[dim_0]
Scan and pixel number nadir view ADS

dim_0: $num_dsr[5]
binary record "ATS_TOA_1P_ADSR_pix_aatsr_rec_data"size: 2068
9fward_view_scan_pix_num_ads
binary array[dim_0]
Scan and pixel number forward view ADS

dim_0: $num_dsr[6]
binary record "ATS_TOA_1P_ADSR_pix_aatsr_rec_data"size: 2068
10distrib_sst_cloud_land_mds
binary array[dim_0]
Distributed product MDS

dim_0: $num_dsr[7]
binary record "ATS_NR__2P_MDSR_dp_aatsr_rec_data"size: 3092

detection rule

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

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "ATS_NR__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 = 8
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) == "NADIR_VIEW_SCAN_PIX_NUM_ADS ");
$ds_to_dsd_index[6] = index(/dsd, str(./ds_name) == "FWARD_VIEW_SCAN_PIX_NUM_ADS ");
$ds_to_dsd_index[7] = index(/dsd, str(./ds_name) == "DISTRIB_SST_CLOUD_LAND_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)