<?xml version="1.0" standalone="no" ?>
<!DOCTYPE XDF SYSTEM "http://xml.gsfc.nasa.gov/DTD/XDF_017.dtd">

<XDF name="A sample XDF document" 
     description="This shows how to put any data into XDF format"
>

      <parameter name="obsdate"><units><unitless/></units><value>01-12-99</value></parameter>

      <array name="Raw Data">

          <parameter name="integration time"><units><unit>sec</unit></units>
              <value>900</value>
          </parameter>

          <units><unit>counts</unit><unit power="-1">seconds</unit></units>
          <dataFormat><float width="5" precision="2"/></dataFormat>

          <axis name="x" axisId="x-axis" axisDatatype="integer" >
             <axisUnits><unit>pixel</unit></axisUnits>
             <valueList size="10" step="1" start="0" />
          </axis>
          <axis name="y" axisId="y-axis" axisDatatype="integer" >
             <axisUnits><unit>pixel</unit></axisUnits>
             <valueList size="10" delimiter=" " repeatable="yes">10  9 8 7 6 5 4 3 2 1</valueList>
          </axis>

             <read readId="readstyle1">
                <for axisIdRef="y-axis">
                   <for axisIdRef="x-axis">
                       <repeat count="9">
                         <readCell />
                         <skipChars count="1" />
                       </repeat>
                       <readCell />
                       <skipChars count="1" output="&#10;" /> 
                  </for>
                </for>
             </read>

             <!-- note the recursive data node use -->
             <data>
                <data><![CDATA[76.53 78.75 67.78 32.59  5.97 68.77 25.39 51.86 30.69 29.03
89.37 10.68 82.31 17.85 25.87 64.17 92.64 47.88  8.03 31.05
+7.48  1.09 -3.15  8.63 20.26  7.27 24.19 72.09  9.69 21.78
75.43 86.23 48.53 43.22 18.81 54.50 11.99 44.20  6.37  3.47
]]>
                </data>
                <data><![CDATA[84.50 95.73 25.15 66.81 13.58 51.03 30.98  6.22 98.91 31.51
91.27  6.39 76.60 94.42 15.01 96.86  1.69 39.20 68.95 62.38
 8.98 44.38 97.61 57.51 87.60 16.42 12.01 99.59 60.63 33.38
14.05 45.13 14.11 39.21 11.93 27.70 90.23 42.91 33.92 56.14
18.42 25.19 95.53 95.03 19.62 10.54 91.89 21.31 49.74 48.83
32.69 58.72  5.22 30.30 16.23 92.81 46.72 28.24 92.40 72.35
]]>
                </data>
             </data>

          <notes>
             <note>Improper cooling of the camera may have resulted in significant dark current.</note>
<!--
             <indexedNote>
                <index axisIDREF="x-axis">6</index>
                <index axisIDREF="y-axis">2</index>
                <note noteID="note2" >No data because of a cosmic ray hit</note>
             </indexedNote>
             <indexedNote>
                <index axisIDREF="x-axis">3</index>
                <index axisIDREF="y-axis">2</index>
                <note noteIDREF="note2" />
             </indexedNote>
-->
          </notes>

      </array>

      <array name="Bias Data">
          <units><unit>counts</unit><unit power="-1">secs</unit></units>
          <dataFormat><float width="4" precision="2"/></dataFormat>

          <axis axisIdRef="x-axis" /> 
          <axis axisIdRef="y-axis" />

             <read readIdRef="readstyle1"/>

             <data><![CDATA[0.96 5.06 2.56 4.29 0.69 2.73 2.08 4.91 3.34 1.78
2.17 5.08 3.00 4.25 1.26 2.55 1.82 2.72 2.99 2.98
3.76 1.91 3.07 2.10 2.71 1.34 2.13 1.68 3.08 1.86
4.34 3.57 3.02 4.56 1.30 3.68 4.25 1.91 3.40 1.73
4.89 1.98 3.49 3.15 0.61 1.92 3.42 2.12 2.79 0.46
2.21 3.15 3.73 1.78 9.07 1.23 3.57 2.97 3.88 4.64
2.13 0.44 3.05 3.00 3.23 3.92 1.59 2.90 3.14 3.45
2.18 5.16 1.89 0.82 5.25 4.26 3.01 3.93 1.26 2.89
4.38 3.94 1.89 5.29 2.52 5.23 4.42 4.46 3.51 3.09
4.73 4.14 3.06 1.79 2.99 2.82 2.50 4.35 4.60 3.41
]]>
             </data>

          <notes>
             <note>Improper cooling of the camera may have resulted in significant dark current.</note>
          </notes>

       </array>

       <array name="Flat Field Data">

          <parameter name="integration time">
             <units><unit>sec</unit></units>
             <value>900</value>
          </parameter>

          <units><unit>counts</unit><unit power="-1">sec</unit></units>
          <dataFormat><float width="4" precision="2"/></dataFormat>

          <axis axisIdRef="y-axis"/>
          <axis axisIdRef="x-axis" />

             <read readIdRef="readstyle1"/>

             <data><![CDATA[0.96 5.06 2.56 4.29 0.69 2.73 2.08 4.91 3.34 1.78
2.17 5.08 3.00 4.25
1.26 2.55 1.82 2.72 2.99 2.98
3.76 1.91 3.07 2.10 2.71 1.34 2.13 1.68 3.08 1.86
4.34 3.57 3.02 4.56 1.30 3.68 4.25 1.91 3.40 1.73
4.89 1.98 3.49 3.15 0.61 1.92 3.42 2.12 2.79 0.46
2.21 3.15 3.73 1.78 9.07 1.23 3.57 2.97 3.88 4.64
2.13 0.44 3.05 3.00 3.23 3.92 1.59 2.90 3.14 3.45
2.18 5.16 1.89 0.82 5.25 4.26 3.01 3.93 1.26 2.89
4.38 3.94 1.89 5.29 2.52 5.23 4.42 4.46 3.51 3.09
4.73 4.14 3.06 1.79 2.99 2.82 2.50 4.35 4.60 3.41
]]>
             </data>

          <notes>
             <note>Improper cooling of the camera may have resulted in significant dark current.</note>
          </notes>

       </array>

</XDF>

