MIP_NLE_2P version 2

MIP_NLE_2P_v2

root type

binary record
idfield namedefinition
0mph
ascii record "MPH"size: 1247
1sph
ascii record "MIP_NL__2P_SPH_v0"size: 729
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 "MIP_NL__2P_ADSR_summary_quality"

available: $ds_available[0] != 0

bit offset: $ds_offset[0]
4scan_geolocation_ads
binary array[dim_0]
Scan Geolocation ADS

dim_0: $num_dsr[1]
binary record "MIP_NL__2P_ADSR_geolocation_v1"size: 100

available: $ds_available[1] != 0

bit offset: $ds_offset[1]
5dataset_structure_ads
binary array[dim_0]
Structure ADS

dim_0: $num_dsr[2]
binary record "MIP_NL__2P_ADSR_structure_v1"size: 300

available: $ds_available[2] != 0

bit offset: $ds_offset[2]
6scan_information_mds
binary array[dim_0]
Scan information MDS

dim_0: $num_dsr[3]
binary record "MIP_NL__2P_MDSR_info_v1"

available: $ds_available[3] != 0

bit offset: $ds_offset[3]
7pt_retrieval_mds
binary array[dim_0]
p,T and Height Correction Profiles MDS

dim_0: $num_dsr[4]
binary record "MIP_NL__2P_MDSR_corr_v2"

available: $ds_available[4] != 0

bit offset: $ds_offset[4]
8o3_retrieval_mds
binary array[dim_0]
dim_0: $num_dsr[5]
binary record "MIP_NL__2P_MDSR_vmr1_v2"

available: $ds_available[5] != 0

bit offset: $ds_offset[5]
9h2o_retrieval_mds
binary array[dim_0]
dim_0: $num_dsr[6]
binary record "MIP_NL__2P_MDSR_vmr2_v2"

available: $ds_available[6] != 0

bit offset: $ds_offset[6]
10microwindow_occupation_ads
binary array[dim_0]
Microwindows occupation matrices for p,T and trace-gas retrievals

dim_0: $num_dsr[7]
binary record "MIP_NL__2P_ADSR_mw_v1"

available: $ds_available[7] != 0

bit offset: $ds_offset[7]
11processing_parameters_ads
binary array[dim_0]
Instrument and Processing Parameters ADS

dim_0: $num_dsr[8]
binary record "MIP_NL__2P_ADSR_params"

available: $ds_available[8] != 0

bit offset: $ds_offset[8]

detection rule

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

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "MIP_NLE_2P" and
bytes(/,95,23) == "PO-RS-MDA-GS2009_12_4C "

or

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "MIP_NLE_2P" and
bytes(/,95,23) == "PO-RS-MDA-GS-2009_4/C  "

or

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "MIP_NLE_2P" and
bytes(/,95,23) == "PO-RS-ESA-GS-0177_5E   "

product variables

namesizeinitialisation
num_dsd$num_dsd = int(/mph/num_dsd)
num_ds$num_ds = 9
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) == "SCAN GEOLOCATION ADS        ");
$ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "DATASET STRUCTURE ADS       ");
$ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "SCAN INFORMATION MDS        ");
$ds_to_dsd_index[4] = index(/dsd, str(./ds_name) == "PT RETRIEVAL MDS            ");
$ds_to_dsd_index[5] = index(/dsd, str(./ds_name) == "O3 RETRIEVAL MDS            ");
$ds_to_dsd_index[6] = index(/dsd, str(./ds_name) == "H2O RETRIEVAL MDS           ");
$ds_to_dsd_index[7] = index(/dsd, str(./ds_name) == "MICROWINDOW OCCUPATION ADS  ");
$ds_to_dsd_index[8] = index(/dsd, str(./ds_name) == "PROCESSING PARAMETERS ADS   ")
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)
species_count$species_count = 2
structure_info_next_index[$num_dsr[2]]$structure_info_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_info_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[0]/dsr_offset) != -1, i + 1, $structure_info_next_index[i + 1])
structure_info_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_info_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[0]/dsr_offset) == -1, if(i > 0, $structure_info_cum_num_dsr[i - 1], 0), if($structure_info_next_index[i] == -1, $num_dsr[3], if(i > 0, $structure_info_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_info_next_index[i]]/ds_pointer[0]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[0]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[0]/dsr_length)))
info_structure_index[$num_dsr[3]]for i = 0 to $num_dsr[3] - 1 do
$info_structure_index[i] = index($structure_info_cum_num_dsr, $structure_info_cum_num_dsr > i)
structure_pt_next_index[$num_dsr[2]]$structure_pt_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_pt_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[1]/dsr_offset) != -1, i + 1, $structure_pt_next_index[i + 1])
structure_pt_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_pt_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[1]/dsr_offset) == -1, if(i > 0, $structure_pt_cum_num_dsr[i - 1], 0), if($structure_pt_next_index[i] == -1, $num_dsr[4], if(i > 0, $structure_pt_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_pt_next_index[i]]/ds_pointer[1]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[1]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[1]/dsr_length)))
pt_structure_index[$num_dsr[4]]for i = 0 to $num_dsr[4] - 1 do
$pt_structure_index[i] = index($structure_pt_cum_num_dsr, $structure_pt_cum_num_dsr > i)
structure_vmr1_next_index[$num_dsr[2]]$structure_vmr1_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_vmr1_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[2]/dsr_offset) != -1, i + 1, $structure_vmr1_next_index[i + 1])
structure_vmr1_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_vmr1_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[2]/dsr_offset) == -1, if(i > 0, $structure_vmr1_cum_num_dsr[i - 1], 0), if($structure_vmr1_next_index[i] == -1, $num_dsr[5], if(i > 0, $structure_vmr1_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_vmr1_next_index[i]]/ds_pointer[2]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[2]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[2]/dsr_length)))
vmr1_structure_index[$num_dsr[5]]for i = 0 to $num_dsr[5] - 1 do
$vmr1_structure_index[i] = index($structure_vmr1_cum_num_dsr, $structure_vmr1_cum_num_dsr > i)
structure_vmr2_next_index[$num_dsr[2]]$structure_vmr2_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_vmr2_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[3]/dsr_offset) != -1, i + 1, $structure_vmr2_next_index[i + 1])
structure_vmr2_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_vmr2_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[3]/dsr_offset) == -1, if(i > 0, $structure_vmr2_cum_num_dsr[i - 1], 0), if($structure_vmr2_next_index[i] == -1, $num_dsr[6], if(i > 0, $structure_vmr2_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_vmr2_next_index[i]]/ds_pointer[3]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[3]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[3]/dsr_length)))
vmr2_structure_index[$num_dsr[6]]for i = 0 to $num_dsr[6] - 1 do
$vmr2_structure_index[i] = index($structure_vmr2_cum_num_dsr, $structure_vmr2_cum_num_dsr > i)
structure_mw_next_index[$num_dsr[2]]$structure_mw_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_mw_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[10]/dsr_offset) != -1, i + 1, $structure_mw_next_index[i + 1])
structure_mw_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_mw_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[10]/dsr_offset) == -1, if(i > 0, $structure_mw_cum_num_dsr[i - 1], 0), if($structure_mw_next_index[i] == -1, $num_dsr[7], if(i > 0, $structure_mw_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_mw_next_index[i]]/ds_pointer[10]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[10]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[10]/dsr_length)))
mw_structure_index[$num_dsr[7]]for i = 0 to $num_dsr[7] - 1 do
$mw_structure_index[i] = index($structure_mw_cum_num_dsr, $structure_mw_cum_num_dsr > i)
structure_param_next_index[$num_dsr[2]]$structure_param_next_index[$num_dsr[2] - 1] = -1;
for i = $num_dsr[2] - 2 to 0 step -1 do
$structure_param_next_index[i] = if(int(/dataset_structure_ads[i + 1]/ds_pointer[12]/dsr_offset) != -1, i + 1, $structure_param_next_index[i + 1])
structure_param_cum_num_dsr[$num_dsr[2]]for i = 0 to $num_dsr[2] - 1 do
$structure_param_cum_num_dsr[i] = if(int(/dataset_structure_ads[i]/ds_pointer[12]/dsr_offset) == -1, if(i > 0, $structure_param_cum_num_dsr[i - 1], 0), if($structure_param_next_index[i] == -1, $num_dsr[8], if(i > 0, $structure_param_cum_num_dsr[i - 1], 0) + (int(/dataset_structure_ads[$structure_param_next_index[i]]/ds_pointer[12]/dsr_offset) - int(/dataset_structure_ads[i]/ds_pointer[12]/dsr_offset)) / int(/dataset_structure_ads[i]/ds_pointer[12]/dsr_length)))
param_structure_index[$num_dsr[8]]for i = 0 to $num_dsr[8] - 1 do
$param_structure_index[i] = index($structure_param_cum_num_dsr, $structure_param_cum_num_dsr > i)