ASA_WVS_1P version 0

ASA_WVS_1P_v0

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

root type

binary record
idfield namedefinition
0mph
ascii record "MPH"size: 1247
1sph
ascii record "SPH_WV"size: 901
2dsd
ascii array[dim_0]
dim_0: $num_dsd
ascii record "DSD"size: 280
3sq_ads
binary array[dim_0]
SQ ADSRs

dim_0: $num_dsr[0]
binary record "ADSR_WV_SQ"size: 252
4geolocation_grid_ads
binary array[dim_0]
Wave Mode Geolocation ADS

dim_0: $num_dsr[1]
binary record "ADSR_WV_Geolocation"size: 25
5processing_params_ads
binary array[dim_0]
Wave Mode processing parameters

dim_0: $num_dsr[2]
binary record "ADSR_WV_Processing_Parameters"size: 3959
6cross_spectra_mds
binary array[dim_0]
Measurement Data Set containing spectra. 1 MDSR per spectra.

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

detection rule

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

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

product variables

namesizeinitialisation
num_wl_bins$num_wl_bins = int(/sph/num_wl_bins)
num_dir_bins$num_dir_bins = int(/sph/num_dir_bins)
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) == "SQ ADS                      ");
$ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "GEOLOCATION ADS             ");
$ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "PROCESSING PARAMS ADS       ");
$ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "CROSS SPECTRA 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] = if($ds_available[i] == 1, 8 * int(/dsd[$ds_to_dsd_index[i]]/ds_offset), 0)
num_dsr[$num_ds]for i = 0 to $num_ds - 1 do
$num_dsr[i] = if($ds_available[i] == 1, int(/dsd[$ds_to_dsd_index[i]]/num_dsr), 0)