GOME_PMA_02 version 1

GOME_PMA_02_v1

This definition is based on version 1B of the Polar Multi-Sensor Aerosol Product Product Format Specification (PFS) document (EUM/TSS/SPE/14/740198).

root type

binary record
idfield namedefinition
0MPHR
binary record "MPHR_v2"size: 3307
1SPHR
binary record "PMAP_SPHR_v1"size: 3630
2IPR
binary array[dim_0]
dim_0: $num_ipr
binary record "IPR"size: 27
3GEADR
binary array[dim_0]
dim_0: $num_geadr
binary record "GEADR"size: 120

available: $num_geadr > 0
4GIADR_GOME2
binary array[dim_0]
dim_0: $num_giadr_gome2
binary record "PMAP_GIADR_GOME2_v1"size: 479
5GIADR_AVHRR
binary array[dim_0]
dim_0: $num_giadr_avhrr
binary record "PMAP_GIADR_AVHRR_v1"size: 52
6GIADR_IASI
binary array[dim_0]
dim_0: $num_giadr_iasi
binary record "PMAP_GIADR_IASI_v1"size: 21
7VEADR
binary array[dim_0]
dim_0: $num_veadr
binary record "VEADR"size: 120

available: $num_veadr > 0
8VIADR_ECMWF
binary array[dim_0]
dim_0: $num_viadr_ecmwf
binary record "PMAP_VIADR_ECMWF_v1"size: 96
9MDR
binary array[dim_0]
dim_0: $num_mdr
binary union "PMAP_MDR_v1"

detection rule

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

bytes(/,0,8) == "\001\000\000\002\000\000\f\353" and
bytes(/,20,32) == "PRODUCT_NAME                  = " and
bytes(/,552,4) == "GOME" and
bytes(/,625,3) == "PMA" and
bytes(/,661,2) == "02" and
bytes(/,1037,5) == "   10" and
bytes(/,1075,5) == "    0"

product variables

namesizeinitialisation
num_ipr$num_ipr = int(/MPHR/TOTAL_IPR)
num_geadr$num_geadr = int(/MPHR/TOTAL_GEADR)
num_giadr_gome2$num_giadr_gome2 = unboundindex(/GIADR_GOME2, int(./RECORD_HEADER/RECORD_SUBCLASS) != 1)
num_giadr_avhrr$num_giadr_avhrr = unboundindex(/GIADR_AVHRR, int(./RECORD_HEADER/RECORD_SUBCLASS) != 2)
num_giadr_iasi$num_giadr_iasi = unboundindex(/GIADR_IASI, int(./RECORD_HEADER/RECORD_SUBCLASS) != 3)
num_veadr$num_veadr = int(/MPHR/TOTAL_VEADR)
num_viadr_ecmwf$num_viadr_ecmwf = int(/MPHR/TOTAL_VIADR)
num_mdr$num_mdr = int(/MPHR/TOTAL_MDR)
mdr_bit_size[$num_mdr]for i = 0 to $num_mdr - 1 do
$mdr_bit_size[i] = bitsize(/mdr[i])