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

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

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" 
    xmlns:mess="http://pds.nasa.gov/pds4/mission/mess/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_1A10.xsd   http://pds.nasa.gov/pds4/mission/mess/v1 https://pds.nasa.gov/pds4/mission/mess/v1/PDS4_MESS_1B00_1020.xsd">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:mess_grs_derived:data_cdr:grs_csh2007159zzz_dat</logical_identifier>
    <version_id>1.0</version_id>
    <title>MESSENGER GRS Shield Spectra Product: grs_csh2007159zzz_dat</title>
    <information_model_version>1.10.1.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2018-07-02</modification_date>
        <version_id>1.0</version_id>
        <description>PDS4 migrated product.</description>
      </Modification_Detail>
    </Modification_History>
  </Identification_Area>
  <Observation_Area>
    <Time_Coordinates>
      <start_date_time>2007-06-08T00:01:18.777Z</start_date_time>
      <stop_date_time>2007-06-08T22:56:18.776Z</stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
      <name>MESSENGER</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:investigation:mission.messenger</lid_reference>
        <reference_type>data_to_investigation</reference_type>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
        <name>MESSENGER</name>
        <type>Spacecraft</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.mess</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:grs.mess</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Venus</name>
      <type>Planet</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:target:planet.venus</lid_reference>
        <reference_type>data_to_target</reference_type>
      </Internal_Reference>
    </Target_Identification>
    <Mission_Area>
      <mess:MESSENGER>
        <mess:mission_phase_name>Venus 2 Flyby</mess:mission_phase_name>
        <mess:spacecraft_clock_start_count>1/089748206</mess:spacecraft_clock_start_count>
        <mess:spacecraft_clock_stop_count>1/089830706</mess:spacecraft_clock_stop_count>
        <mess:software_name>grs_cdr_gen</mess:software_name>
        <mess:software_version_id>1.0</mess:software_version_id>
        <mess:detector_id>shield</mess:detector_id>
      </mess:MESSENGER>
    </Mission_Area>
  </Observation_Area>
  <File_Area_Observational>
    <File>
      <file_name>grs_csh2007159zzz.dat</file_name>
      <creation_date_time>2015-09-21T14:07:04Z</creation_date_time>
    </File>
    <Table_Binary>
      <offset unit="byte">0</offset>
      <records>276</records>
      <description>
        This table contains one set of Shield (SHI) spectra
        collected from the high purity Germanium (HPGe) detector plus
        spatial and temporal information and relevant engineering and
        counter and pulser data from the time the spectra was taken.
        A set is defined as all data with time stamps corresponding to
        a given day of year.
      </description>
      <Record_Binary>
        <fields>34</fields>
        <groups>1</groups>
        <record_length unit="byte">4301</record_length>
        <Field_Binary>
          <name>met</name>
          <field_number>1</field_number>
          <field_location unit="byte">1</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Mission elapsed time, in seconds, corresponding to the start of the accumulation period for the spectra.</description>
        </Field_Binary>
        <Field_Binary>
          <name>accum_time</name>
          <field_number>2</field_number>
          <field_location unit="byte">5</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Accumulation time, in seconds, of the Shield detector.</description>
        </Field_Binary>
        <Field_Binary>
          <name>midpoint_met</name>
          <field_number>3</field_number>
          <field_location unit="byte">9</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The mission elapsed time at the midpoint of the shield Raw observation. 
            Defined as: MET at the start of the observation + (ACCUM_TIME / 2).
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>orbit_number</name>
          <field_number>4</field_number>
          <field_location unit="byte">13</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>
            Orbit number is a unique identifier for a given orbit of the MESSENGER spacecraft around Mercury. 
            Orbit number is defined as starting at apoherm and is calculated using the MET value and the appropriate SPICE kernels. 
            Orbit numbering does not start until MESSENGER performs the Mercury orbit insertion.
            Until that time the value for orbit Number is 0.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>start_bin</name>
          <field_number>5</field_number>
          <field_location unit="byte">15</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Start Bin of the Shield detector.</description>
        </Field_Binary>
        <Field_Binary>
          <name>number_of_bins</name>
          <field_number>6</field_number>
          <field_location unit="byte">17</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Number of bins in the raw spectra.</description>
        </Field_Binary>
        <Field_Binary>
          <name>grs_priority_level</name>
          <field_number>7</field_number>
          <field_location unit="byte">19</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>
            Indicates the type of priority assigned to the science packet. 
            The priority level is tied to the ApID of the packet. 
            Priority level varies from 0-3, 0 being highest and 3 being lowest priority.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>bad_data_flag</name>
          <field_number>8</field_number>
          <field_location unit="byte">21</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>
            Intended for use as a bit-string bad data flag to indicate specific problems associated with the data. 
            Values are expected to be assigned to specific bits as problems are identified during the course of the mission. 
            Bit 1  - The high voltage is not on, is being ramped or has not been stable long enough. 
            Bit 2  - Indicates a change in the analog pulse processing system gain setting. 
            Bit 3  - Indicates a spectrum where the temperatures used for correction have fluctuated by greater than 
                     5 percent from previous readings. 
            Bit 4  - Indicates gamma spectra collected during a solar particle event. These spectra should not be combined 
                     with spectra collected under normal solar conditions. 
            Bit 5  - Pulser data is not combined with the spectrum. 
            Bit 6  - Indicates gamma spectra collected during a solar flare event. These spectra should not be combined with 
                     spectra collected under normal solar conditions. 
            Bit 7  - Indicates gamma spectra collected during periods of decreased GS detector spectral resolution. These 
                     spectra should not be combined with spectra collected under 'normal' detector conditions. 
            Bit 8  - Not all data channels were received on the ground.
            Bit 9  - Indicates a unique problem with single spectrum.
            Bit 10 - The high voltage has not been stable long enough. 
            Bit 11 - This data was taken during a time when the spectra were particularly noisy. Many channels have far too 
                     many counts, especially the lower channels.
          </description>
        </Field_Binary>
        <Group_Field_Binary>
          <group_number>1</group_number>
          <repetitions>1024</repetitions>
          <fields>1</fields>
          <groups>0</groups>
          <group_location unit="byte">23</group_location>
          <group_length unit="byte">4096</group_length>
          <Field_Binary>
            <name>cal_sh</name>
            <field_number>1</field_number>
            <field_location unit="byte">1</field_location>
            <data_type>IEEE754MSBSingle</data_type>
            <field_length unit="byte">4</field_length>
            <description>
              Spectra of light pulses produced from interaction of a gamma ray with the plastic scintillator shield. 
              Contains the corrected counts in each of the 1024 bins after 1 accumulation period.
            </description>
          </Field_Binary>
        </Group_Field_Binary>
        <Field_Binary>
          <name>utc_midpoint_met</name>
          <field_number>9</field_number>
          <field_location unit="byte">4119</field_location>
          <data_type>ASCII_String</data_type>
          <field_length unit="byte">23</field_length>
          <description>midpoint_met converted to UTC, stored as yyyy-mm-ddThh:mm:ss.sss.</description>
        </Field_Binary>
        <Field_Binary>
          <name>mercury_centric_latitude</name>
          <field_number>10</field_number>
          <field_location unit="byte">4142</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub spacecraft latitude in Mercury fixed coordinates at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>mercury_centric_longitude</name>
          <field_number>11</field_number>
          <field_location unit="byte">4150</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>
            Sub spacecraft longitude in Mercury fixed coordinates at the middle of the collection interval. 
            Longitude increases towards the East.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>instr_boresight_mercury_x</name>
          <field_number>12</field_number>
          <field_location unit="byte">4158</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub instrument boresight (x component) in Mercury fixed coordinates at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>instr_boresight_mercury_y</name>
          <field_number>13</field_number>
          <field_location unit="byte">4166</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub instrument boresight (y component) in Mercury fixed coordinates at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>instr_boresight_mercury_z</name>
          <field_number>14</field_number>
          <field_location unit="byte">4174</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Sub instrument boresight (z component) in Mercury fixed coordinates at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>scalt</name>
          <field_number>15</field_number>
          <field_location unit="byte">4182</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>
            Mercury centric altitude of the sub-spacecraft point in Mercury-fixed 
            rotating frame at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>delta_angle</name>
          <field_number>16</field_number>
          <field_location unit="byte">4190</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Difference between instrument +y direction and true north at the middle of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>mercury_sol</name>
          <field_number>17</field_number>
          <field_location unit="byte">4198</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 Mercury'.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>local_hour</name>
          <field_number>18</field_number>
          <field_location unit="byte">4206</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>19</field_number>
          <field_location unit="byte">4207</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>20</field_number>
          <field_location unit="byte">4208</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>True if pointing data was available.</description>
        </Field_Binary>
        <Field_Binary>
          <name>intersecting</name>
          <field_number>21</field_number>
          <field_location unit="byte">4209</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>True if the pointing vector intersects Mercury.</description>
        </Field_Binary>
        <Field_Binary>
          <name>nadir_angle</name>
          <field_number>22</field_number>
          <field_location unit="byte">4210</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>
            Spacecraft attitude during orbits and flybys is defined by two additional coordinate systems, the GRS LVLH 
            (Local Vertical Local Horizontal) frame and the spacecraft fixed frame, and by the rotation of the spacecraft 
            frame with respect to the GRS LVLH frame. In the GRS LVLH frame, the Z axis is aligned with the vector from the 
            spacecraft to the planet center (the nadir direction), the Y axis is the negative of the cross product of the 
            position and velocity vectors, and the X axis points in the instantaneous direction of motion, completing a 
            right-handed coordinate system. The Z axis is along the viewing direction of the instrument deck inside the 
            adapter ring and of the GRS just outside the adapter ring, the Y axis is directed from the spacecraft along 
            the magnetometer boom, and the X-axis is parallel to the solar panel booms, forming a right-handed coordinate 
            system. The spacecraft attitude is specified by the rotation of the spacecraft fixed frame Z axis in the 
            GRS LVLH frame and a twist angle about the Z axis. The Z axis rotation is given by a nadir angle and an 
            azimuth angle, where the nadir angle is 0 degrees when the spacecraft Z axis points along the + Z LVLH axis
            and 180 degrees when it points along -Z in the LVLH frame, and the LVLH azimuth angle is measured 
            counterclockwise about the Z LVLH axis from the X LVLH axis. The twist angle is measured positive about 
            the +Z spacecraft axis. See section 5.4.2 in the GRS_CDR_SIS for further details.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>azimuth</name>
          <field_number>23</field_number>
          <field_location unit="byte">4218</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>
            Spacecraft attitude during orbits and flybys is defined by two additional coordinate systems, the GRS LVLH 
            (Local Vertical Local Horizontal) frame and the spacecraft fixed frame, and by the rotation of the spacecraft 
            frame with respect to the GRS LVLH frame. In the GRS LVLH frame, the Z axis is aligned with the vector from 
            the spacecraft to the planet center (the nadir direction), the Y axis is the negative of the cross product 
            of the position and velocity vectors, and the X axis points in the instantaneous direction of motion, 
            completing a right-handed coordinate system. The Z axis is along the viewing direction of the instrument 
            deck inside the adapter ring and of the GRS just outside the adapter ring, the Y axis is directed from 
            the spacecraft along the magnetometer boom, and the X-axis is parallel to the solar panel booms, forming 
            a right-handed coordinate system. The spacecraft attitude is specified by the rotation of the spacecraft 
            fixed frame Z axis in the GRS LVLH frame and a twist angle about the Z axis. The Z axis rotation is 
            given by a nadir angle and an azimuth angle, where the nadir angle is 0 degrees when the spacecraft 
            Z axis points along the + Z LVLH axis and 180 degrees when it points along -Z in the LVLH frame, and 
            the LVLH azimuth angle is measured counterclockwise about the Z LVLH axis from the X LVLH axis. The 
            twist angle is measured positive about the +Z spacecraft axis. See section 5.4.2 in the GRS_CDR_SIS 
            for further details.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>twist_angle</name>
          <field_number>24</field_number>
          <field_location unit="byte">4226</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>
            Spacecraft attitude during orbits and flybys is defined by two additional coordinate systems, the GRS LVLH 
            (Local Vertical Local Horizontal) frame and the spacecraft fixed frame, and by the rotation of the spacecraft 
            frame with respect to the GRS LVLH frame. In the GRS LVLH frame, the Z axis is aligned with the vector from the 
            spacecraft to the planet center (the nadir direction), the Y axis is the negative of the cross product of the 
            position and velocity vectors, and the X axis points in the instantaneous direction of motion, completing 
            a right-handed coordinate system. The Z axis is along the viewing direction of the instrument deck inside 
            the adapter ring and of the GRS just outside the adapter ring, the Y axis is directed from the spacecraft 
            along the magnetometer boom, and the X-axis is parallel to the solar panel booms, forming a right-handed 
            coordinate system. The spacecraft attitude is specified by the rotation of the spacecraft fixed frame 
            Z axis in the GRS LVLH frame and a twist angle about the Z axis. The Z axis rotation is given by a nadir 
            angle and an azimuth angle, where the nadir angle is 0 degrees when the spacecraft Z axis points along 
            the + Z LVLH axis and 180 degrees when it points along -Z in the LVLH frame, and the LVLH azimuth angle 
            is measured counterclockwise about the Z LVLH axis from the X LVLH axis. The twist angle is measured positive 
            about the +Z spacecraft axis. See section 5.4.2 in the GRS_CDR_SIS for further details.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>ad_temp</name>
          <field_number>25</field_number>
          <field_location unit="byte">4234</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Channel 06, AD Temperature, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>hvps_temp</name>
          <field_number>26</field_number>
          <field_location unit="byte">4242</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>HVPS Temperature, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>hvps_volt</name>
          <field_number>27</field_number>
          <field_location unit="byte">4250</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>HVPS Voltage, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>hvps_ref_volt</name>
          <field_number>28</field_number>
          <field_location unit="byte">4258</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>HVPS Reference Voltage, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>preamp_temp</name>
          <field_number>29</field_number>
          <field_location unit="byte">4266</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Channel 04, Pre Amp Temperature, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>shaper_temp</name>
          <field_number>30</field_number>
          <field_location unit="byte">4274</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Channel 05, Shaper Temperature, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>hv_monitor</name>
          <field_number>31</field_number>
          <field_location unit="byte">4282</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>Channel 07, HV Monitor, smoothed and interpolated to the center of the collection interval.</description>
        </Field_Binary>
        <Field_Binary>
          <name>hpge_raw_events</name>
          <field_number>32</field_number>
          <field_location unit="byte">4290</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Counter of HPGe Raw events.</description>
        </Field_Binary>
        <Field_Binary>
          <name>shield_raw_events</name>
          <field_number>33</field_number>
          <field_location unit="byte">4294</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Counter for SHIELD raw events.</description>
        </Field_Binary>
        <Field_Binary>
          <name>accumulated_dead_time</name>
          <field_number>34</field_number>
          <field_location unit="byte">4298</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Counter for accumulated dead time.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
  </File_Area_Observational>
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>grs_csh2007159zzz.lbl</file_name>
    </File>
    <Stream_Text>
      <offset unit="byte">0</offset>
      <parsing_standard_id>PDS3</parsing_standard_id>
      <description>Original PDS3 label</description>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
    </Stream_Text>
  </File_Area_Observational_Supplemental>
</Product_Observational>
