| 1 |
<?xml version="1.0"?> |
| 2 |
<cd:ProductDefinition id="GOM_PR1_AX_v0" format="binary" last-modified="2008-07-01" xmlns:cd="http://www.stcorp.nl/coda/definition/2008/07"> |
| 3 |
<cd:Record format="binary"> |
| 4 |
<cd:Field name="mph"> |
| 5 |
<cd:NamedType id="MPH"/> |
| 6 |
</cd:Field> |
| 7 |
<cd:Field name="sph"> |
| 8 |
<cd:NamedType id="Auxiliary_Data_SPH"/> |
| 9 |
</cd:Field> |
| 10 |
<cd:Field name="dsd"> |
| 11 |
<cd:Array format="ascii"> |
| 12 |
<cd:Dimension><![CDATA[$num_dsd]]></cd:Dimension> |
| 13 |
<cd:NamedType id="DSD"/> |
| 14 |
</cd:Array> |
| 15 |
</cd:Field> |
| 16 |
<cd:Field name="pr1_general"> |
| 17 |
<cd:Array> |
| 18 |
<cd:Description>General GADS</cd:Description> |
| 19 |
<cd:Dimension><![CDATA[$num_dsr[0]]]></cd:Dimension> |
| 20 |
<cd:NamedType id="GOM_PR1_AX_GADS_general_v0"/> |
| 21 |
</cd:Array> |
| 22 |
<cd:Available><![CDATA[$ds_available[0] != 0]]></cd:Available> |
| 23 |
<cd:BitOffset><![CDATA[$ds_offset[0]]]></cd:BitOffset> |
| 24 |
</cd:Field> |
| 25 |
<cd:Field name="pr1_atmosphere"> |
| 26 |
<cd:Array> |
| 27 |
<cd:Description>Atmosphere GADS</cd:Description> |
| 28 |
<cd:Dimension><![CDATA[$num_dsr[1]]]></cd:Dimension> |
| 29 |
<cd:NamedType id="GOM_PR1_AX_GADS_atmosphere_v0"/> |
| 30 |
</cd:Array> |
| 31 |
<cd:Available><![CDATA[$ds_available[1] != 0]]></cd:Available> |
| 32 |
<cd:BitOffset><![CDATA[$ds_offset[1]]]></cd:BitOffset> |
| 33 |
</cd:Field> |
| 34 |
</cd:Record> |
| 35 |
<cd:ProductVariable name="num_dsd"> |
| 36 |
<cd:Init><![CDATA[$num_dsd = int(/mph/num_dsd)]]></cd:Init> |
| 37 |
</cd:ProductVariable> |
| 38 |
<cd:ProductVariable name="num_ds"> |
| 39 |
<cd:Init><![CDATA[$num_ds = 2]]></cd:Init> |
| 40 |
</cd:ProductVariable> |
| 41 |
<cd:ProductVariable name="ds_to_dsd_index"> |
| 42 |
<cd:Dimension><![CDATA[$num_ds]]></cd:Dimension> |
| 43 |
<cd:Init><![CDATA[$ds_to_dsd_index[0] = index(/dsd, str(./ds_name) == "PR1_GENERAL "); $ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "PR1_ATMOSPHERE ")]]></cd:Init> |
| 44 |
</cd:ProductVariable> |
| 45 |
<cd:ProductVariable name="ds_available"> |
| 46 |
<cd:Dimension><![CDATA[$num_ds]]></cd:Dimension> |
| 47 |
<cd:Init><![CDATA[for i = 0 to $num_ds - 1 do $ds_available[i] = if($ds_to_dsd_index[i] != -1 && !(bytes(/dsd[$ds_to_dsd_index[i]]/filename, 8) == "NOT USED"), 1, 0)]]></cd:Init> |
| 48 |
</cd:ProductVariable> |
| 49 |
<cd:ProductVariable name="ds_offset"> |
| 50 |
<cd:Dimension><![CDATA[$num_ds]]></cd:Dimension> |
| 51 |
<cd:Init><![CDATA[for i = 0 to $num_ds - 1 do $ds_offset[i] = 8 * int(/dsd[$ds_to_dsd_index[i]]/ds_offset)]]></cd:Init> |
| 52 |
</cd:ProductVariable> |
| 53 |
<cd:ProductVariable name="num_dsr"> |
| 54 |
<cd:Dimension><![CDATA[$num_ds]]></cd:Dimension> |
| 55 |
<cd:Init><![CDATA[for i = 0 to $num_ds - 1 do $num_dsr[i] = int(/dsd[$ds_to_dsd_index[i]]/num_dsr)]]></cd:Init> |
| 56 |
</cd:ProductVariable> |
| 57 |
</cd:ProductDefinition> |