<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1J00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/mission/ody/v1/PDS4_ODY_1J00_1020.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1"
    xmlns:pds="http://pds.nasa.gov/pds4/pds/v1"
    xmlns:ody="http://pds.nasa.gov/pds4/mission/ody/v1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1  https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1J00.xsd
    http://pds.nasa.gov/pds4/mission/ody/v1    https://pds.nasa.gov/pds4/mission/ody/v1/PDS4_ODY_1J00_1020.xsd
    ">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:odyssey_grs_edr:data_science_raw:gamma_spectra_20040407</logical_identifier>
    <version_id>1.0</version_id>
    <title>Mars Odyssey GRS raw science product: gamma_spectra_20040407</title>
    <information_model_version>1.19.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2026-07-01</modification_date>
        <version_id>1.0</version_id>
        <description>Migration to PDS4</description>
      </Modification_Detail>
    </Modification_History>
  </Identification_Area>
  <Observation_Area>
    <Time_Coordinates>
      <start_date_time>2004-04-07T00:00:04.621Z</start_date_time>
      <stop_date_time>2004-04-07T23:59:58.333Z</stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
      <name>MARS Odyssey</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:investigation:mission.2001_mars_odyssey</lid_reference>
        <reference_type>data_to_investigation</reference_type>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
        <name>2001 MARS ODYSSEY</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.ody</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>GAMMA RAY SPECTROMETER</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:ody.grs</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
        <name>Mars</name>
        <type>Planet</type>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:context:target:planet.mars</lid_reference>
            <reference_type>data_to_target</reference_type>
        </Internal_Reference>
    </Target_Identification>
    <Mission_Area>
      <ody:ODY_Parameters>
        <ody:GRS_Observation_Information>
          <ody:release_number>0010</ody:release_number>
          <ody:product_type>GAMMA_SPECTRA</ody:product_type>
          <ody:product_version_id>1.0</ody:product_version_id>
          <ody:mission_phase_name>MAPPING</ody:mission_phase_name>
          <ody:spacecraft_clock_start>196035421285</ody:spacecraft_clock_start>
          <ody:spacecraft_clock_stop>196057538014</ody:spacecraft_clock_stop>
        </ody:GRS_Observation_Information>
      </ody:ODY_Parameters>
    </Mission_Area>
  </Observation_Area>
  <File_Area_Observational>
    <File>
      <file_name>gamma_spectra_20040407.dat</file_name>
      <local_identifier>gamma_spectra_data_table</local_identifier>
      <creation_date_time>2004-11-17T20:56:41.046</creation_date_time>
    </File>
    <Table_Binary>
      <offset unit="byte">0</offset>
      <records>4373</records>
      <description>This the raw uncalibrated gamma ray spectra and associated data.</description>
      <Record_Binary>
        <fields>28</fields>
        <groups>8</groups>
        <record_length unit="byte">33075</record_length>
        <Field_Binary>
          <name>SC_RECV_TIME</name>
          <field_number>1</field_number>
          <field_location unit="byte">1</field_location>
          <data_type>UnsignedMSB8</data_type>
          <field_length unit="byte">8</field_length>
          <description>The time this packet was received by the spacecraft, in ticks (256 per second).</description>
        </Field_Binary>
        <Field_Binary>
          <name>SC_EV_TIME</name>
          <field_number>2</field_number>
          <field_location unit="byte">9</field_location>
          <data_type>UnsignedMSB8</data_type>
          <field_length unit="byte">8</field_length>
          <description>Spacecraft time at the middle of the pixel, in ticks.</description>
        </Field_Binary>
        <Field_Binary>
          <name>CEB_TIME</name>
          <field_number>3</field_number>
          <field_location unit="byte">17</field_location>
          <data_type>UnsignedMSB8</data_type>
          <field_length unit="byte">8</field_length>
          <unit>ms</unit>
          <description>Clock count from the GRS Common Electronics Box at the beginning of the pixel.</description>
        </Field_Binary>
        <Field_Binary>
          <name>UTC</name>
          <field_number>4</field_number>
          <field_location unit="byte">25</field_location>
          <data_type>ASCII_String</data_type>
          <field_length unit="byte">23</field_length>
          <description>SC_EV_TIME converted to UTC, stored as yyyy-mm-ddThh:mm:ss.sss.</description>
        </Field_Binary>
        <Field_Binary>
          <name>GRS_PIXEL_NUMBER</name>
          <field_number>5</field_number>
          <field_location unit="byte">48</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Sequential counter of accumulation intervals, starts with one as grs orbit begins. Special case on reboot when the the CEB is in orbit 0, pixel 0.</description>
          <Special_Constants>
              <invalid_constant>0</invalid_constant>
          </Special_Constants>
        </Field_Binary>
        <Field_Binary>
          <name>GRS_ORBIT_NUMBER</name>
          <field_number>6</field_number>
          <field_location unit="byte">52</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Sequential counter of orbits from GRS CEB boot.</description>
          <Special_Constants>
              <invalid_constant>0</invalid_constant>
          </Special_Constants>
        </Field_Binary>
        <Field_Binary>
          <name>ODY_ORBIT_NUMBER</name>
          <field_number>7</field_number>
          <field_location unit="byte">56</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Orbit number common to all instruments aboard Odyssey. This orbit number is incremented by one as the spacecraft passes through the orbital descending node.</description>
          <Special_Constants>
              <invalid_constant>0</invalid_constant>
          </Special_Constants>
        </Field_Binary>
        <Field_Binary>
          <name>LATITUDE</name>
          <field_number>8</field_number>
          <field_location unit="byte">60</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub spacecraft latitude in Mars fixed coordinates at the middle of the pixel.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LONGITUDE</name>
          <field_number>9</field_number>
          <field_location unit="byte">68</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub spacecraft longitude in Mars fixed coordinates at the middle of the pixel.</description>
        </Field_Binary>
        <Group_Field_Binary>
          <group_number>1</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>The geometric position (x,y,z) of the spacecraft with respect to Mars in the 'MARSIAU' inertial frame at the input epoch 'et' at the middle of the pixel.</description>
          <group_location unit="byte">76</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>SCPOS_INERT</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>2</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>The geometric velocity (x,y,z) of the spacecraft with respect to Mars in the 'MARSIAU' inertial frame at the input epoch 'et' at the middle of the pixel.</description>
          <group_location unit="byte">100</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>SCVEL_INERT</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km/s</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>3</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>The (x,y,z) position of the sub-spacecraft point as seen from the spacecraft in the instrument frame at the middle of the pixel. If no spacecraft orientation data was available from the loaded CK files for the request time, then all elements of are set to zero.</description>
          <group_location unit="byte">124</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>MARSPOS_INSTR</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>4</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>Contains the inertial spacecraft velocity direction (x,y,z) rotated to the instrument frame at the middle of the pixel. If no spacecraft orientation data was available for the request time, then all elements are set to zero.</description>
          <group_location unit="byte">148</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>MARSVEL_INSTR</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km/s</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>5</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>Spacecraft position (x,y,z) in Mars fixed coordinates at the middle of the pixel.</description>
          <group_location unit="byte">172</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>SCPOS_MARS</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>6</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>Sub instrument boresight (x,y,z) in Mars fixed coordinates at the middle of the pixel.</description>
          <group_location unit="byte">196</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>INSTR_BORESIGHT_MARS</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Group_Field_Binary>
          <group_number>7</group_number>
          <repetitions>3</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>Sub spacecraft vector (x,y,z) in Mars fixed coordinates at the middle of the pixel.</description>
          <group_location unit="byte">220</group_location>
          <group_length unit="byte">24</group_length>
          <Field_Binary>
            <name>SUB_SCPOS_MARS</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBDouble</data_type>
            <field_length unit="byte">8</field_length>
            <unit>km</unit>
          </Field_Binary>
        </Group_Field_Binary>
        <Field_Binary>
          <name>SCALT</name>
          <field_number>10</field_number>
          <field_location unit="byte">244</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <unit>km</unit>
          <description>Areocentric altitude of the sub-spacecraft point in Mars-fixed rotating frame at the middle of the pixel.</description>
        </Field_Binary>
        <Field_Binary>
          <name>DELTA_ANGLE</name>
          <field_number>11</field_number>
          <field_location unit="byte">252</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <unit>degrees</unit>
          <description>Difference between instrument +y direction and true north at the middle of the pixel. Currently not computed for NEUTRON_SPECTRA and HEND_SPECTRA.</description>
        </Field_Binary>
        <Field_Binary>
          <name>MARS_SOL</name>
          <field_number>12</field_number>
          <field_location unit="byte">260</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Longitude of the Sun at 0 hours UT on the date of the record. Taken from the Association of Lunar and Planetary Observers 'Ephemeris for Physical Observation of Mars'.</description>
        </Field_Binary>
        <Field_Binary>
          <name>DAY_INDEX</name>
          <field_number>13</field_number>
          <field_location unit="byte">268</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Day of Martian year.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LOCAL_HOUR</name>
          <field_number>14</field_number>
          <field_location unit="byte">270</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Local Sun hour at the sub-spacecraft point.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LOCAL_MINUTE</name>
          <field_number>15</field_number>
          <field_location unit="byte">271</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Local Sun minute at the sub-spacecraft point.</description>
        </Field_Binary>
        <Field_Binary>
          <name>POINTING</name>
          <field_number>16</field_number>
          <field_location unit="byte">272</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>1 = True -- pointing data available.</description>
        </Field_Binary>
        <Field_Binary>
          <name>INTERSECTING</name>
          <field_number>17</field_number>
          <field_location unit="byte">273</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>1 = True -- the pointing vector intersects Mars.</description>
        </Field_Binary>
        <Field_Binary>
          <name>BAD_CODE</name>
          <field_number>18</field_number>
          <field_location unit="byte">274</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>If non-zero, the data has been flagged bad. Definitions in bad_code.txt.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COUNTER</name>
          <field_number>19</field_number>
          <field_location unit="byte">278</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>A spectra can come down in up to 8 packets. Each packet has its own counter. This counter is the combination of all eight possible counters, four bits for each.</description>
        </Field_Binary>
        <Field_Binary>
          <name>FIRST_CHAN</name>
          <field_number>20</field_number>
          <field_location unit="byte">282</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>First valid channel in the spectrum.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LAST_CHAN</name>
          <field_number>21</field_number>
          <field_location unit="byte">284</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Last valid channel in the spectrum.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LLD_CNTR</name>
          <field_number>22</field_number>
          <field_location unit="byte">286</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Lower level discriminator count.</description>
        </Field_Binary>
        <Field_Binary>
          <name>ULD_CNTR</name>
          <field_number>23</field_number>
          <field_location unit="byte">288</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Upper level discriminator count.</description>
        </Field_Binary>
        <Field_Binary>
          <name>L1_CNTR</name>
          <field_number>24</field_number>
          <field_location unit="byte">290</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Total number of gamma events within the L1 energy range.</description>
        </Field_Binary>
        <Field_Binary>
          <name>L2_CNTR</name>
          <field_number>25</field_number>
          <field_location unit="byte">292</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Total number of gamma events within the L2 energy range.</description>
        </Field_Binary>
        <Field_Binary>
          <name>L3_CNTR</name>
          <field_number>26</field_number>
          <field_location unit="byte">294</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Total number of gamma events within the L3 energy range.</description>
        </Field_Binary>
        <Field_Binary>
          <name>PHA_CNTR</name>
          <field_number>27</field_number>
          <field_location unit="byte">296</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Pulse Height Analyzer counter.</description>
        </Field_Binary>
        <Field_Binary>
          <name>PHA_TIMER</name>
          <field_number>28</field_number>
          <field_location unit="byte">300</field_location>
          <data_type>UnsignedMSB8</data_type>
          <field_length unit="byte">8</field_length>
          <description>Pulse Height Analyzer timer.</description>
        </Field_Binary>
        <Group_Field_Binary>
          <group_number>8</group_number>
          <repetitions>16384</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <description>Raw uncompressed gamma spectrum.</description>
          <group_location unit="byte">308</group_location>
          <group_length unit="byte">32768</group_length>
          <Field_Binary>
            <name>RAW_SPECTRUM</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>UnsignedMSB2</data_type>
            <field_length unit="byte">2</field_length>
          </Field_Binary>
        </Group_Field_Binary>
      </Record_Binary>
    </Table_Binary>
  </File_Area_Observational>
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>gamma_spectra_20040407.lbl</file_name>
    </File>
    <Stream_Text>
      <offset unit="byte">0</offset>
      <parsing_standard_id>PDS3</parsing_standard_id>
      <description>PDS3 label</description>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
    </Stream_Text>
  </File_Area_Observational_Supplemental>
</Product_Observational>
