<?xml version="1.0"?>
<cd:Record xmlns:cd="http://www.stcorp.nl/coda/definition/2008/07" xmlns:ct="http://www.stcorp.nl/coda/test/2008/10" format="binary" last-modified="2019-10-31" name="Level_1B_Ground_Wind_Detection_04_03">
  <cd:Description>Level 1B Measurement Ground Wind Detection</cd:Description>
  <cd:Field name="surface">
    <cd:Integer>
      <cd:Description>The parameter holds five different values: 0 for ACE data, 1 for MSS data, 2 for EGM96 data, and 3 for SRTM30 data. Values 1 and 2 correspond to sea surface. Value 4 is the default setting. Since in case an input L1A product holds BRCs with different numbers of measurements per BRC the L1B product will report the max number of measurements occurring in the L1A product for every L1B output BRC, thus BRCs contain measurements filled with default values.</cd:Description>
      <cd:BitSize>8</cd:BitSize>
      <cd:NativeType>uint8</cd:NativeType>
      <ct:NamedTest id="Range0To4"/>
    </cd:Integer>
  </cd:Field>
  <cd:Field name="ground_wind_detected">
    <cd:Integer>
      <cd:Description>TRUE=ground wind is detected in the current bin</cd:Description>
      <cd:BitSize>8</cd:BitSize>
      <cd:NativeType>uint8</cd:NativeType>
      <ct:NamedTest id="BooleanBinTest"/>
    </cd:Integer>
  </cd:Field>
  <cd:Field name="ground_bin_property">
    <cd:Array>
      <cd:Dimension>5</cd:Dimension>
      <cd:Record>
        <cd:Field name="ground_bin_num">
          <cd:Integer>
            <cd:Description>Number of ground bin detected</cd:Description>
            <cd:BitSize>8</cd:BitSize>
            <cd:NativeType>uint8</cd:NativeType>
          </cd:Integer>
        </cd:Field>
        <cd:Field name="offset_dem_bin">
          <cd:Float>
            <cd:Description>Offset of ground bin centre height to expected ground centre height calculating DEM intersection</cd:Description>
            <cd:Unit>m</cd:Unit>
            <cd:BitSize>64</cd:BitSize>
            <cd:NativeType>double</cd:NativeType>
            <ct:NamedTest id="FloatIsFinite"/>
          </cd:Float>
        </cd:Field>
        <cd:Field name="dem_weight">
          <cd:Float>
            <cd:Description>Weight assigned to signal of this ground bin, based on offset to DEM. Value between 0 and 1</cd:Description>
            <cd:BitSize>64</cd:BitSize>
            <cd:NativeType>double</cd:NativeType>
            <ct:NamedTest id="FloatIsFinite"/>
          </cd:Float>
        </cd:Field>
        <cd:Field name="snr_weight">
          <cd:Float>
            <cd:Description>Weight assigned to signal of this ground bin based on the SNR. Value between 0 and 1</cd:Description>
            <cd:BitSize>64</cd:BitSize>
            <cd:NativeType>double</cd:NativeType>
            <ct:NamedTest id="FloatIsFinite"/>
          </cd:Float>
        </cd:Field>
        <cd:Field name="fwhm_weight">
          <cd:Float>
            <cd:Description>Weight assigned to signal of this ground bin based on the FWHM. Value between 0 and 1</cd:Description>
            <cd:BitSize>64</cd:BitSize>
            <cd:NativeType>double</cd:NativeType>
            <ct:NamedTest id="FloatIsFinite"/>
          </cd:Float>
        </cd:Field>
      </cd:Record>
    </cd:Array>
  </cd:Field>
  <cd:Field name="ground_bin_thickness_above_dem">
    <cd:Float>
      <cd:Description>Ground wind thickness (air column height) above DEM intersection (= difference between the upper edgeof the ground bin and DEM height). When there is no expected ground bin, this is set to -9999. For the average ground wind bin thickness calculation, only the values with corresponding flag ground_wind_detected=TRUE are used</cd:Description>
      <cd:BitSize>64</cd:BitSize>
      <cd:NativeType>double</cd:NativeType>
      <ct:NamedTest id="FloatIsFinite"/>
    </cd:Float>
  </cd:Field>
</cd:Record>
