<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1B00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/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_1B00.xsd">

     <Identification_Area>
       <logical_identifier>urn:nasa:pds:mer1_apxs_raw:document:mer1_apxs_obs</logical_identifier>
       <version_id>1.0</version_id>
       <title>MER1 APXS Observation Table</title>
       <information_model_version>1.11.0.0</information_model_version>
       <product_class>Product_Observational</product_class>
       <Modification_History>
         <Modification_Detail>
           <modification_date>2019-05-14</modification_date>
           <version_id>1.0</version_id>
           <description>Migrated from PDS3 to PDS4.</description>
         </Modification_Detail>
       </Modification_History>
     </Identification_Area>
     <Observation_Area>
       <Time_Coordinates>
         <start_date_time>2004-02-03Z</start_date_time>
         <stop_date_time>2018-06-20Z</stop_date_time>
       </Time_Coordinates>
       <Investigation_Area>
         <name>Mars Exploration Rover</name>
         <type>Mission</type>
         <Internal_Reference>
           <lid_reference>urn:nasa:pds:context:investigation:mission.mars_exploration_rover</lid_reference>
           <reference_type>data_to_investigation</reference_type>
         </Internal_Reference>
       </Investigation_Area>
       <Observing_System>
         <Observing_System_Component>
           <name>Mars Exploration Rover 1</name>
           <type>Spacecraft</type>
           <Internal_Reference>
             <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.mer1</lid_reference>
             <reference_type>is_instrument_host</reference_type>
           </Internal_Reference>
         </Observing_System_Component>
         <Observing_System_Component>
           <name>Alpha Particle X-ray Spectrometer</name>
           <type>Instrument</type>
           <Internal_Reference>
             <lid_reference>urn:nasa:pds:context:instrument:apxs.mer1</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>
    </Observation_Area>

  <File_Area_Observational>
    <File>
      <file_name>mer1_apxs_obs.csv</file_name>
    </File>
    
    <Header>
      <offset unit="byte">0</offset>
      <object_length unit="byte">134</object_length>
      <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
      <description>The header is the first row in the file and contains column headings.</description>
    </Header>
    
    <Table_Delimited>
      <offset unit="byte">134</offset>
      <parsing_standard_id>PDS DSV 1</parsing_standard_id>
      <description>
        This spreadsheet contains information about the APXS measurements from MER1. Note
        that this table does not contain records for duplicate readouts of the APXS data. 
        Redundant readouts were done on a regular basis after the rover lost access to its 
        flash memory system.
      </description>
      <records>1246</records>
	  <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
	  <field_delimiter>Comma</field_delimiter>
      <Record_Delimited>
        <fields>10</fields>
        <groups>0</groups>
        <Field_Delimited>
          <name>raw_file_name</name>
          <field_number>1</field_number>
          <data_type>ASCII_String</data_type>
          <description>Name of the raw (EDR) file.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>duration</name>
          <field_number>2</field_number>
          <data_type>ASCII_Real</data_type>
          <description>Duration of the integration in hours.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>sol_number</name>
          <field_number>3</field_number>
          <data_type>ASCII_Integer</data_type>
          <description>MER1 sol number at the start of the integration.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>start_time</name>
          <field_number>4</field_number>
          <data_type>ASCII_String</data_type>
          <description>Start time for integration in Local Solar Time (LST).</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>start_door_state</name>
          <field_number>5</field_number>
          <data_type>ASCII_String</data_type>
          <description>APXS door state at start of integration.
            Value is OPEN or CLOSE.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>stop_door_state</name>
          <field_number>6</field_number>
          <data_type>ASCII_String</data_type>
          <description>APXS door state at end of integration.
            Value is OPEN or CLOSE.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>number_of_spectra</name>
          <field_number>7</field_number>
          <data_type>ASCII_Integer</data_type>
          <description>The number of new spectra in the data file. Values could
            be from 1 to 12.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>acquisition_time</name>
          <field_number>8</field_number>
          <data_type>ASCII_Integer</data_type>
          <description>Integration time in seconds.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>spectrum_id</name>
          <field_number>9</field_number>
          <data_type>ASCII_Integer</data_type>
          <description>Spectrum ID for first spectrum as found
            in the EDR data product.</description>
        </Field_Delimited>
        <Field_Delimited>
          <name>sample_description</name>
          <field_number>10</field_number>
          <data_type>ASCII_String</data_type>
          <description>Short text description about the
            measurement that indicates what target was measured.</description>
        </Field_Delimited>
      </Record_Delimited>
    </Table_Delimited>
  </File_Area_Observational>

  <File_Area_Observational_Supplemental>
    <File>
      <file_name>mer1_apxs_obs.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>
