<?xml version="1.0"?>
<cd:ProductDefinition id="SCI_NL__2P" format="binary" last-modified="2008-07-01" xmlns:cd="http://www.stcorp.nl/coda/definition/2008/07">
  <cd:Record format="binary">
  <cd:Field name="mph">
    <cd:NamedType id="MPH"/>
  </cd:Field>
  <cd:Field name="sph">
    <cd:NamedType id="SCI_NL__2P_SPH"/>
  </cd:Field>
  <cd:Field name="dsd">
    <cd:Array format="ascii">
      <cd:Dimension><![CDATA[$num_dsd]]></cd:Dimension>
      <cd:NamedType id="DSD"/>
    </cd:Array>
  </cd:Field>
  <cd:Field name="summary_quality">
    <cd:Array>
      <cd:Description>Summary Quality ADS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[0]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_ADSR_summary_quality"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[0] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[0]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="state_geolocation">
    <cd:Array>
      <cd:Description>Geolocation ADS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[1]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL_OL_2P_ADSR_geolocation"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[1] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[1]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="states">
    <cd:Array>
      <cd:Description>States of the Product ADS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[2]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL_OL_2P_ADSR_states"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[2] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[2]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="geolocation">
    <cd:Array>
      <cd:Description>Geolocation of the Ground Pixels ADS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[3]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_ADSR_geolocation_pixels"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[3] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[3]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="clouds_aerosol">
    <cd:Array>
      <cd:Description>Cloud and Aerosol MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[4]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_clouds_aerosols"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[4] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[4]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_0_o3">
    <cd:Array>
      <cd:Description>O3 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[5]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[5] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[5]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_1_no2">
    <cd:Array>
      <cd:Description>NO2 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[6]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[6] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[6]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_1_h2o">
    <cd:Array>
      <cd:Description>H2O DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[7]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[7] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[7]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_1_o3">
    <cd:Array>
      <cd:Description>O3 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[8]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[8] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[8]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_2_bro">
    <cd:Array>
      <cd:Description>BrO DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[9]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[9] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[9]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_2_o3_l">
    <cd:Array>
      <cd:Description>O3-L DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[10]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[10] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[10]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_2_o3_h">
    <cd:Array>
      <cd:Description>O3-H DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[11]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[11] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[11]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_2_no2">
    <cd:Array>
      <cd:Description>NO2 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[12]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[12] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[12]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_2_oclo">
    <cd:Array>
      <cd:Description>OClO DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[13]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[13] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[13]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_3_oclo">
    <cd:Array>
      <cd:Description>OClO DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[14]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[14] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[14]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_3_no2">
    <cd:Array>
      <cd:Description>NO2 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[15]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[15] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[15]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_3_o4">
    <cd:Array>
      <cd:Description>O4 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[16]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[16] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[16]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_4_so2">
    <cd:Array>
      <cd:Description>SO2 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[17]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[17] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[17]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_4_o3">
    <cd:Array>
      <cd:Description>O3 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[18]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[18] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[18]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_hcho">
    <cd:Array>
      <cd:Description>HCHO DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[19]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[19] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[19]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_bro">
    <cd:Array>
      <cd:Description>BrO DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[20]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[20] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[20]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_o3_l">
    <cd:Array>
      <cd:Description>O3-L DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[21]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[21] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[21]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_o3_h">
    <cd:Array>
      <cd:Description>O3-H DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[22]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[22] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[22]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_no2">
    <cd:Array>
      <cd:Description>NO2 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[23]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[23] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[23]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_5_o4">
    <cd:Array>
      <cd:Description>O4 DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[24]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[24] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[24]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_spare_1">
    <cd:Array>
      <cd:Description>Spare DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[25]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[25] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[25]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="doas_spare_2">
    <cd:Array>
      <cd:Description>Spare DOAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[26]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_doas_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[26] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[26]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_0_h2o">
    <cd:Array>
      <cd:Description>H2O BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[27]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[27] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[27]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_0_co2">
    <cd:Array>
      <cd:Description>CO2 BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[28]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[28] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[28]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_1_n2o">
    <cd:Array>
      <cd:Description>N2O BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[29]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[29] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[29]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_1_h2o">
    <cd:Array>
      <cd:Description>H2O BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[30]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[30] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[30]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_1_ch4">
    <cd:Array>
      <cd:Description>CH4 BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[31]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[31] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[31]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_2_co">
    <cd:Array>
      <cd:Description>CO BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[32]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[32] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[32]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_2_h2o">
    <cd:Array>
      <cd:Description>H2O BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[33]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[33] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[33]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_2_ch4">
    <cd:Array>
      <cd:Description>CH4 BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[34]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[34] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[34]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_spare_1">
    <cd:Array>
      <cd:Description>Spare BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[35]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[35] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[35]]]></cd:BitOffset>
  </cd:Field>
  <cd:Field name="bias_spare_2">
    <cd:Array>
      <cd:Description>Spare BIAS Trace-Gas MDS</cd:Description>
      <cd:Dimension><![CDATA[$num_dsr[36]]]></cd:Dimension>
      <cd:NamedType id="SCI_NL__2P_MDSR_bias_gas"/>
    </cd:Array>
    <cd:Available><![CDATA[$ds_available[36] != 0]]></cd:Available>
    <cd:BitOffset><![CDATA[$ds_offset[36]]]></cd:BitOffset>
  </cd:Field>
</cd:Record>
  <cd:ProductVariable name="num_dsd">
    <cd:Init><![CDATA[$num_dsd = int(/mph/num_dsd)]]></cd:Init>
  </cd:ProductVariable>
  <cd:ProductVariable name="num_ds">
    <cd:Init><![CDATA[$num_ds = 37]]></cd:Init>
  </cd:ProductVariable>
  <cd:ProductVariable name="ds_to_dsd_index">
    <cd:Dimension><![CDATA[$num_ds]]></cd:Dimension>
    <cd:Init><![CDATA[$ds_to_dsd_index[0] = index(/dsd, str(./ds_name) == "SUMMARY_QUALITY             "); $ds_to_dsd_index[1] = index(/dsd, str(./ds_name) == "STATE_GEOLOCATION           "); $ds_to_dsd_index[2] = index(/dsd, str(./ds_name) == "STATES                      "); $ds_to_dsd_index[3] = index(/dsd, str(./ds_name) == "GEOLOCATION                 "); $ds_to_dsd_index[4] = index(/dsd, str(./ds_name) == "CLOUDS_AEROSOL              "); $ds_to_dsd_index[5] = index(/dsd, str(./ds_name) == "DOAS_0_O3                   "); $ds_to_dsd_index[6] = index(/dsd, str(./ds_name) == "DOAS_1_NO2                  "); $ds_to_dsd_index[7] = index(/dsd, str(./ds_name) == "DOAS_1_H2O                  "); $ds_to_dsd_index[8] = index(/dsd, str(./ds_name) == "DOAS_1_O3                   "); $ds_to_dsd_index[9] = index(/dsd, str(./ds_name) == "DOAS_2_BRO                  "); $ds_to_dsd_index[10] = index(/dsd, str(./ds_name) == "DOAS_2_O3_L                 "); $ds_to_dsd_index[11] = index(/dsd, str(./ds_name) == "DOAS_2_O3_H                 "); $ds_to_dsd_index[12] = index(/dsd, str(./ds_name) == "DOAS_2_NO2                  "); $ds_to_dsd_index[13] = index(/dsd, str(./ds_name) == "DOAS_2_OCLO                 "); $ds_to_dsd_index[14] = index(/dsd, str(./ds_name) == "DOAS_3_OCLO                 "); $ds_to_dsd_index[15] = index(/dsd, str(./ds_name) == "DOAS_3_NO2                  "); $ds_to_dsd_index[16] = index(/dsd, str(./ds_name) == "DOAS_3_O4                   "); $ds_to_dsd_index[17] = index(/dsd, str(./ds_name) == "DOAS_4_SO2                  "); $ds_to_dsd_index[18] = index(/dsd, str(./ds_name) == "DOAS_4_O3                   "); $ds_to_dsd_index[19] = index(/dsd, str(./ds_name) == "DOAS_5_HCHO                 "); $ds_to_dsd_index[20] = index(/dsd, str(./ds_name) == "DOAS_5_BRO                  "); $ds_to_dsd_index[21] = index(/dsd, str(./ds_name) == "DOAS_5_O3_L                 "); $ds_to_dsd_index[22] = index(/dsd, str(./ds_name) == "DOAS_5_O3_H                 "); $ds_to_dsd_index[23] = index(/dsd, str(./ds_name) == "DOAS_5_NO2                  "); $ds_to_dsd_index[24] = index(/dsd, str(./ds_name) == "DOAS_5_O4                   "); $ds_to_dsd_index[25] = index(/dsd, str(./ds_name) == "DOAS_SPARE_1                "); $ds_to_dsd_index[26] = index(/dsd, str(./ds_name) == "DOAS_SPARE_2                "); $ds_to_dsd_index[27] = index(/dsd, str(./ds_name) == "BIAS_0_H2O                  "); $ds_to_dsd_index[28] = index(/dsd, str(./ds_name) == "BIAS_0_CO2                  "); $ds_to_dsd_index[29] = index(/dsd, str(./ds_name) == "BIAS_1_N2O                  "); $ds_to_dsd_index[30] = index(/dsd, str(./ds_name) == "BIAS_1_H2O                  "); $ds_to_dsd_index[31] = index(/dsd, str(./ds_name) == "BIAS_1_CH4                  "); $ds_to_dsd_index[32] = index(/dsd, str(./ds_name) == "BIAS_2_CO                   "); $ds_to_dsd_index[33] = index(/dsd, str(./ds_name) == "BIAS_2_H2O                  "); $ds_to_dsd_index[34] = index(/dsd, str(./ds_name) == "BIAS_2_CH4                  "); $ds_to_dsd_index[35] = index(/dsd, str(./ds_name) == "BIAS_SPARE_1                "); $ds_to_dsd_index[36] = index(/dsd, str(./ds_name) == "BIAS_SPARE_2                ")]]></cd:Init>
  </cd:ProductVariable>
  <cd:ProductVariable name="ds_available">
    <cd:Dimension><![CDATA[$num_ds]]></cd:Dimension>
    <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>
  </cd:ProductVariable>
  <cd:ProductVariable name="ds_offset">
    <cd:Dimension><![CDATA[$num_ds]]></cd:Dimension>
    <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>
  </cd:ProductVariable>
  <cd:ProductVariable name="num_dsr">
    <cd:Dimension><![CDATA[$num_ds]]></cd:Dimension>
    <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>
  </cd:ProductVariable>
</cd:ProductDefinition>
