RA2_MW__1P version 0

RA2_MW__1P_v0

This definition is based on version 4/C of product specification PO-RS-MDA-GS-2009 Vol14

root type

binary record
idfield namedefinition
0mph
ascii record "MPH"size: 1247
1sph
ascii record "RA2_MWR_Level_1_SPH_v0"size: 1655
2dsd
ascii array[dim_0]
dim_0: $num_dsd
ascii record "DSD"size: 280
3ra2_mds
binary array[dim_0]
RA-2 MDS (from the GDR product)

dim_0: $num_dsr[0]
binary record "RA2_SCIENCE_LEVEL_1B"size: 606

available: $ds_available[0] != 0

bit offset: $ds_offset[0]
4burst_waveforms_mds
binary array[dim_0]
RA-2 Burst Waveforms MDS

dim_0: $num_dsr[1]
binary record "RA2_BURST_LEVEL_1B"size: 3242

available: $ds_available[1] != 0

bit offset: $ds_offset[1]
5ptr_mds
binary array[dim_0]
RA-2 PTR MDS

dim_0: $num_dsr[2]
binary record "RA2_PTR_DATA"size: 320

available: $ds_available[2] != 0

bit offset: $ds_offset[2]
6mwr_mds
binary array[dim_0]
RA-2 MWR MDS

dim_0: $num_dsr[3]
binary record "MWR_SCIENCE_LEVEL_1B"size: 88

available: $ds_available[3] != 0

bit offset: $ds_offset[3]

detection rule

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

bytes(/,0,8) == "PRODUCT=" and
bytes(/,9,10) == "RA2_MW__1P"

product variables

namesizeinitialisation
num_dsd$num_dsd = int(/mph/num_dsd)
num_ds$num_ds = 4
ds_to_dsd_index[$num_ds]$ds_to_dsd_index[0] = index(/dsd, str(./ds_name) == "RA2_SCIENCE_LEVEL_1B        ");
$ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "RA2_BURST_LEVEL_1B          ");
$ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "RA2_PTR_DATA                ");
$ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "MWR_SCIENCE_LEVEL_1B        ")
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" or 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)