<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1H00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/mission/lro/v1/PDS4_LRO_1H00_1020.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/proc/v1/PDS4_PROC_1H00_1210.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" 
    xmlns:lro="http://pds.nasa.gov/pds4/mission/lro/v1" 
    xmlns:proc="http://pds.nasa.gov/pds4/proc/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_1H00.xsd
    http://pds.nasa.gov/pds4/mission/lro/v1 https://pds.nasa.gov/pds4/mission/lro/v1/PDS4_LRO_1H00_1020.xsd
    http://pds.nasa.gov/pds4/proc/v1        https://pds.nasa.gov/pds4/proc/v1/PDS4_PROC_1H00_1210.xsd">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:lro_lend:data_hk_raw:lend_edr_hk_20210708</logical_identifier>
    <version_id>1.0</version_id>
    <title>LRO LEND raw housekeeping product: lend_edr_hk_20210708</title>
    <information_model_version>1.17.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2023-05-12</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>2021-07-08T00:00:03Z</start_date_time>
      <stop_date_time>2021-07-08T23:59:51Z</stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
      <name>Lunar Reconnaissance Orbiter</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:investigation:mission.lunar_reconnaissance_orbiter</lid_reference>
        <reference_type>data_to_investigation</reference_type>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <name>LEND</name>
      <Observing_System_Component>
        <name>Lunar Reconnaissance Orbiter</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.lro</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>Lunar Exploration Neutron Detector for LRO</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:lro.lend</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Moon</name>
      <type>Satellite</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:target:satellite.earth.moon</lid_reference>
        <reference_type>data_to_target</reference_type>
      </Internal_Reference>
    </Target_Identification>
    <Mission_Area>
      <lro:LRO_Parameters>
        <lro:product_type>LEND_EDR_HK</lro:product_type>
        <lro:product_version_id>1.0</lro:product_version_id>
        <lro:mission_phase_name>FOURTH EXTENDED SCIENCE MISSION</lro:mission_phase_name>
        <lro:spacecraft_clock_start_count>647395203</lro:spacecraft_clock_start_count>
        <lro:spacecraft_clock_stop_count>647481591</lro:spacecraft_clock_stop_count>
      </lro:LRO_Parameters>
    </Mission_Area>
    <Discipline_Area>
      <proc:Processing_Information>
        <Local_Internal_Reference>
          <local_identifier_reference>hk_data_table</local_identifier_reference>
          <local_reference_type>processing_information_to_data_object</local_reference_type>
        </Local_Internal_Reference>
        <proc:Process>
          <proc:Software>
            <proc:Software_Program>
              <proc:name>GEN_LEND_EDR</proc:name>
              <proc:program_version>1.0.0</proc:program_version>
            </proc:Software_Program>
          </proc:Software>
        </proc:Process>
      </proc:Processing_Information>
    </Discipline_Area>
  </Observation_Area>
  <File_Area_Observational>
    <File>
      <file_name>lend_edr_hk_20210708.dat</file_name>
      <local_identifier>hk_data_table</local_identifier>
      <creation_date_time>2021-11-19T16:02:15</creation_date_time>
    </File>
    <Table_Binary>
      <offset unit="byte">0</offset>
      <records>7200</records>
      <description>This table contains instrument parameters and housekeeping values
                as observed by the Lunar Reconnaissance Orbiter (LRO) Lunar Exploration 
                Neutron Detector (LEND). Detailed descriptions for the parameters defined below are
                contained in the LEND_EDR_SIS document.</description>
      <Record_Binary>
        <fields>26</fields>
        <groups>0</groups>
        <record_length unit="byte">61</record_length>
        <Field_Binary>
          <name>SYNCHRO_SEQUENCE</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>
          <description>A synchronization sequence for HK data, 55 AA.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND1</name>
          <field_number>2</field_number>
          <field_location unit="byte">3</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Command ID of command 1.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND1_TIME</name>
          <field_number>3</field_number>
          <field_location unit="byte">7</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>LEND time of command 1.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND2</name>
          <field_number>4</field_number>
          <field_location unit="byte">11</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Command ID of command 2.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND2_TIME</name>
          <field_number>5</field_number>
          <field_location unit="byte">15</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>LEND time of command 2.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND3</name>
          <field_number>6</field_number>
          <field_location unit="byte">19</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Command ID of command 3.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND3_TIME</name>
          <field_number>7</field_number>
          <field_location unit="byte">23</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>LEND time of command 3.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND4</name>
          <field_number>8</field_number>
          <field_location unit="byte">27</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Command ID of command 4.</description>
        </Field_Binary>
        <Field_Binary>
          <name>COMMAND4_TIME</name>
          <field_number>9</field_number>
          <field_location unit="byte">31</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>LEND time of command 4.</description>
        </Field_Binary>
        <Field_Binary>
          <name>HV_LEVELS</name>
          <field_number>10</field_number>
          <field_location unit="byte">35</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>20 LSb used for HV values. Bits 0,1 - for detectors 1,
                        bits 16, 17, 18, 19 - for scintillation detector 
                        Bit 20 - ACI for SC IN NEUTRONS
                        Bit 21 - ACI for SC IN GAMMS
                        Bit 22 - ACI for SC OUTER
                        Bit 23 - current 1PPS signal usage.</description>
        </Field_Binary>
        <Field_Binary>
          <name>HEATER_STATES_CMD_ACCEPT</name>
          <field_number>11</field_number>
          <field_location unit="byte">39</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Bit 0 - heater 1 state
                        Bit 1 - heater 2 state
                        Bit 2 - heater 3 state
                        Bit 3 - heater 4 state
                        
                        Command execution flag
                        (0 - command was rejected, 1 - command was executed)
                        Bit 4 - Command 1
                        Bit 5 - Command 2
                        Bit 6 - Command 3
                        Bit 7 - Command 4.</description>
        </Field_Binary>
        <Field_Binary>
          <name>DISCRIMINATOR_LEVELS</name>
          <field_number>12</field_number>
          <field_location unit="byte">40</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Current discriminators level values.
                        10 MSb used. Bit 0 - for detector 1, bit 9, 10 - for
                        scintillation detector .</description>
        </Field_Binary>
        <Field_Binary>
          <name>HEATING_THREASHOLD_TEMPERATURE</name>
          <field_number>13</field_number>
          <field_location unit="byte">42</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Current heaters thresholds levels.</description>
        </Field_Binary>
        <Field_Binary>
          <name>LEND_TIME</name>
          <field_number>14</field_number>
          <field_location unit="byte">46</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Internal instrument time in 0.016 second.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_0</name>
          <field_number>15</field_number>
          <field_location unit="byte">50</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading of the scintillator.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_1</name>
          <field_number>16</field_number>
          <field_location unit="byte">51</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading electronics board.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_2</name>
          <field_number>17</field_number>
          <field_location unit="byte">52</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading low voltage board.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_3</name>
          <field_number>18</field_number>
          <field_location unit="byte">53</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading outer detector 4.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_4</name>
          <field_number>19</field_number>
          <field_location unit="byte">54</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading outer detector 3.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_5</name>
          <field_number>20</field_number>
          <field_location unit="byte">55</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading outer detector 2.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_6</name>
          <field_number>21</field_number>
          <field_location unit="byte">56</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading outer detector 1.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_7</name>
          <field_number>22</field_number>
          <field_location unit="byte">57</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading high voltage board 2.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_8</name>
          <field_number>23</field_number>
          <field_location unit="byte">58</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading high voltage board 1.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_9</name>
          <field_number>24</field_number>
          <field_location unit="byte">59</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading control board 2.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_10</name>
          <field_number>25</field_number>
          <field_location unit="byte">60</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading control board 1.</description>
        </Field_Binary>
        <Field_Binary>
          <name>TEMPERATURE_11</name>
          <field_number>26</field_number>
          <field_location unit="byte">61</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Raw temperature reading mounting point.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
  </File_Area_Observational>
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>lend_edr_hk_20210708.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>
