<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1I00.sch" 
    schematypens="http://purl.oclc.org/dsdl/schematron" ?>
<?xml-model href="https://pds.nasa.gov/pds4/particle/v2/PDS4_PARTICLE_1I00_2010.sch"
    schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/msn/v1/PDS4_MSN_1I00_1300.sch" 
    schematypens="http://purl.oclc.org/dsdl/schematron" ?>
<Product_Observational
   xmlns="http://pds.nasa.gov/pds4/pds/v1"
   xmlns:particle="http://pds.nasa.gov/pds4/particle/v2"
   xmlns:msn="http://pds.nasa.gov/pds4/msn/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_1I00.xsd
     http://pds.nasa.gov/pds4/particle/v2     https://pds.nasa.gov/pds4/particle/v2/PDS4_PARTICLE_1I00_2010.xsd
           http://pds.nasa.gov/pds4/msn/v1     https://pds.nasa.gov/pds4/msn/v1/PDS4_MSN_1I00_1300.xsd
          ">
    <Identification_Area>
        <logical_identifier>urn:nasa:pds:lro-crater:data-raw-pri:crat_l0_pri_2026072</logical_identifier>
        <version_id>1.0</version_id>
        <title>LRO CRaTER Lunar Raw Energy Data Primary Science 2026-072 (2026-03-13)</title>
        <information_model_version>1.18.0.0</information_model_version>
        <product_class>Product_Observational</product_class>
        <Citation_Information>
            <author_list>Spence, Harlan E.</author_list>
            <publication_year>2025</publication_year>
            <keyword>Lunar Reconnaissance Orbiter</keyword>
            <keyword>LRO</keyword>
            <keyword>Cosmic Ray Telescope for the Effects of Radiation</keyword>
            <keyword>CRaTER</keyword>
            <description>
                Raw (Level 0) primary science data from CRaTER for year 2026 day 072 (2026-03-13). These
                data have been reformatted from the PDS3 data file CRAT_L0_PRI_2026072_V02.LBL
                during the process of migrating to PDS4. Bit fields in the original file
                have been converted to integer values. Field values should be unchanged.
            </description>
        </Citation_Information>
        <Modification_History>
            <Modification_Detail>
                <modification_date>2026-06-14</modification_date>
                <version_id>1.0</version_id>
                <description>
                    This product, CRAT_L0_PRI_2026072_V02.xml, is a reformatted
                    version of the product CRAT_L0_PRI_2026072_V02.LBL, which was
                    originally released as part of the PDS3 EDR dataset. The data
                    values are unchanged. This version of the data and metadata are
                    the first version to be migrated to PDS4 so it carries a PDS4
                    version_id of 1.0.
                </description>
            </Modification_Detail>
        </Modification_History>
    </Identification_Area>
    <Observation_Area>
        <comment>Instrument Serial Number: 2</comment>
        <Time_Coordinates>
            <start_date_time>2026-03-13T00:00:00.78Z</start_date_time>
            <stop_date_time>2026-03-13T23:59:59.78Z</stop_date_time>
        </Time_Coordinates>
        <Primary_Result_Summary>
            <purpose>Science</purpose>
            <processing_level>Raw</processing_level>
            <Science_Facets>
                <domain>Magnetosphere</domain>
                <domain>Heliosphere</domain>
                <discipline_name>Particles</discipline_name>
                <facet1>Ions</facet1>
                <facet2>Cosmic Ray</facet2>
            </Science_Facets>
        </Primary_Result_Summary>
        <Investigation_Area>
            <name>LRO</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>
            <Observing_System_Component>
                <name>CRaTER</name>
                <type>Instrument</type>
                <Internal_Reference>
                    <lid_reference>urn:nasa:pds:context:instrument:lro.crat</lid_reference>
                    <reference_type>is_instrument</reference_type>
                </Internal_Reference>
            </Observing_System_Component>
            <Observing_System_Component>
                <name>LRO</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>
        <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>
        <Discipline_Area>
            <msn:Mission_Information>
                <msn:mission_phase_name>SIXTH EXTENDED SCIENCE MISSION</msn:mission_phase_name>
                <msn:spacecraft_clock_start>0795052800.75</msn:spacecraft_clock_start>
                <msn:spacecraft_clock_stop>0795139199.75</msn:spacecraft_clock_stop>
                <msn:spacecraft_clock_partition>1</msn:spacecraft_clock_partition>
            </msn:Mission_Information>
            <particle:Particle_Observation>
                <particle:Particle_Parameter>
                    <particle:particle_type>Ions</particle:particle_type>
                    <particle:particle_measurement_type>Pulse Height Analysis</particle:particle_measurement_type>
                </particle:Particle_Parameter>
                <particle:Particle_Parameter>
                    <particle:particle_type>Ions</particle:particle_type>
                    <particle:particle_measurement_type>Energy Spectra</particle:particle_measurement_type>
                </particle:Particle_Parameter>
            </particle:Particle_Observation>
        </Discipline_Area>
    </Observation_Area>
    <Reference_List>
        <Internal_Reference>
            <lidvid_reference>urn:nasa:pds:lro-crater:data-raw-sec:crat_l0_sec_2026072::1.0</lidvid_reference>
            <reference_type>data_to_raw_product</reference_type>
        </Internal_Reference>
        <Internal_Reference>
            <lidvid_reference>urn:nasa:pds:lro-crater:data-raw-hk:crat_l0_hk_2026072::1.0</lidvid_reference>
            <reference_type>data_to_raw_product</reference_type>
            <comment>The referenced product contains instrument engineering data associated with this product.</comment>
        </Internal_Reference>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:lro-crater:document:data-raw-pri-desc</lid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
        <Source_Product_External>
            <external_source_product_identifier>LRO-L-CRAT-2-EDR-RAWDATA-V1.0:CRAT_L0_PRI_2026072_V02:CRAT_L0_PRI_2026072_V02.DAT</external_source_product_identifier>
            <reference_type>data_to_raw_source_product</reference_type>
            <doi>10.17189/1519727</doi>
            <curating_facility>NASA Planetary Data System</curating_facility>
            <description>This is the first version of this product converted to PDS4. The DOI provided
                references the PDS3 source data set.</description>
        </Source_Product_External>
    </Reference_List>
    <File_Area_Observational>
        <File>
            <file_name>CRAT_L0_PRI_2026072_V02.DAT</file_name>
            <creation_date_time>2026-03-16T19:32:56.000Z</creation_date_time>
            <file_size unit="byte">54335952</file_size>
            <md5_checksum>d5371f4d7eaa7009e5fcf55671b22e57</md5_checksum>
            <comment>This data file has been reformatted from the PDS3 version.</comment>
        </File>
        <Table_Binary>
            <name>Header Record</name>
            <offset unit="byte">0</offset>
            <records>1</records>
            <description>
                Header for data file, consisting of 1 record. The first three bytes 
                are spare and not described by a Field_Binary object.
            </description>
            <Record_Binary>
                <fields>6</fields>
                <groups>0</groups>
                <record_length unit="byte">18</record_length>
                <Field_Binary>
                    <name>FileID</name>
                    <field_number>1</field_number>
                    <field_location unit="byte">4</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>File Identifier (primary science = 200,
                       housekeeping = 201, secondary science = 202).</description>
                       <Special_Constants>
                          <valid_maximum>202</valid_maximum>
                          <valid_minimum>200</valid_minimum>
                       </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>Reserved</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>Spare.</description>
                </Field_Binary>
                <Field_Binary>
                    <name>StartTimeSec</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>
                    <unit>s</unit>
                    <description>Spacecraft Time of First Packet in File (elapsed
                       seconds from epoch 2001-01-01T00:00:00.000 UTC)</description>
                    <Special_Constants>
                       <valid_maximum>2147483647</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>StartTimeSubsec</name>
                    <field_number>4</field_number>
                    <field_location unit="byte">13</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <unit>Counts</unit>
                    <description>Spacecraft Time of First Packet in File--Fractional
                       Seconds. (Use only the 4 most significant bits (MSB) to compute
                       an unsigned integer corresponding to the number of
                       1/16th second increments.  The 4 remaining bits are
                       undefined.)</description>
                       <Special_Constants>
                          <valid_maximum>2.4E+2</valid_maximum>
                          <valid_minimum>0</valid_minimum>
                       </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>StopTimeSec</name>
                    <field_number>5</field_number>
                    <field_location unit="byte">14</field_location>
                    <data_type>UnsignedMSB4</data_type>
                    <field_length unit="byte">4</field_length>
                    <unit>s</unit>
                    <description>Spacecraft Time of Last Packet in File (elapsed
                       seconds from epoch 2001-01-01T00:00:00.000 UTC).</description>
                    <Special_Constants>
                       <valid_maximum>2147483647</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>StopTimeSubsec</name>
                    <field_number>6</field_number>
                    <field_location unit="byte">18</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <unit>Counts</unit>
                    <description>Spacecraft Time of Last Packet in File--Fractional
                       Seconds. (Use only the 4 most significant bits (MSB) to compute
                       an unsigned integer corresponding to the number of
                       1/16th second increments.  The 4 remaining bits are
                       undefined.)</description>
                    <Special_Constants>
                       <valid_maximum>255</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
            </Record_Binary>
        </Table_Binary>
        <Table_Binary>
            <name>Data Table</name>
            <offset unit="byte">18</offset>
            <records>91474</records>
            <description>
                Table containing the measured data.
            </description>
            <Record_Binary>
                <fields>12</fields>
                <groups>1</groups>
                <record_length unit="byte">594</record_length>
                <Field_Binary>
                    <name>CCSDS Version Number</name>
                    <field_number>1</field_number>
                    <field_location unit="byte">1</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Part of CCSDS Primary and Secondary Headers, ApId = 120.</description>
                </Field_Binary>
                <Field_Binary>
                    <name>PacketType</name>
                    <field_number>2</field_number>
                    <field_location unit="byte">2</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Packet Type. Part of CCSDS Primary and Secondary Headers, ApId = 120.</description>
                </Field_Binary>
                <Field_Binary>
                    <name>SecHdrFlag</name>
                    <field_number>3</field_number>
                    <field_location unit="byte">3</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Secondary Header Flag (1 = secondary header
                       follows). Part of CCSDS Primary and Secondary Headers, ApId = 120.</description>
                </Field_Binary>
                <Field_Binary>
                    <name>APID</name>
                    <field_number>4</field_number>
                    <field_location unit="byte">4</field_location>
                    <data_type>UnsignedMSB2</data_type>
                    <field_length unit="byte">2</field_length>
                    <description>Application Process ID (120 = primary science; 121 =
                       secondary science; 122 = housekeeping). Part of CCSDS Primary and
                       Secondary Headers, ApId = 120.</description>
                    <Special_Constants>
                       <valid_maximum>6.552E+4</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>SegFlag</name>
                    <field_number>5</field_number>
                    <field_location unit="byte">6</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Packet Segmentation Flag (3 = no segmentation). Part of CCSDS
                       Primary and Secondary Headers, ApId = 120.</description>
                </Field_Binary>
                <Field_Binary>
                    <name>SeqCount</name>
                    <field_number>6</field_number>
                    <field_location unit="byte">7</field_location>
                    <data_type>UnsignedMSB2</data_type>
                    <field_length unit="byte">2</field_length>
                    <description>Sources Sequence Count (separate for each ApId). Part of CCSDS
                       Primary and Secondary Headers, ApId = 120.</description>
                    <Special_Constants>
                       <valid_maximum>65535</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>PacketLength</name>
                    <field_number>7</field_number>
                    <field_location unit="byte">9</field_location>
                    <data_type>UnsignedMSB2</data_type>
                    <field_length unit="byte">2</field_length>
                    <description>Packet Length (number of bytes following primary
                       header - 1). Part of CCSDS Primary and Secondary Headers, ApId = 120.
                       This is the original CCSDS packet length, not the reformatted
                       record length.</description>
                    <Special_Constants>
                       <valid_maximum>65535</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>Time</name>
                    <field_number>8</field_number>
                    <field_location unit="byte">11</field_location>
                    <data_type>UnsignedMSB4</data_type>
                    <field_length unit="byte">4</field_length>
                    <unit>s</unit>
                    <description>Spacecraft Time (elapsed seconds from epoch
                       2001-01-01T00:00:00.000 UTC). Part of CCSDS Primary and
                       Secondary Headers, ApId = 120.</description>
                    <Special_Constants>
                        <valid_maximum>2147483647</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>FracTime</name>
                    <field_number>9</field_number>
                    <field_location unit="byte">15</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <unit>Counts</unit>
                    <description>Spacecraft Time--Fractional Seconds (number of 1/16 second increments). Part of CCSDS Primary and
                       Secondary Headers, ApId = 120.</description>
                    <Special_Constants>
                       <valid_maximum>255</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>TestFlag</name>
                    <field_number>10</field_number>
                    <field_location unit="byte">16</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Test Mode Flag (1 = test enabled). Part of CCSDS Primary and Secondary Headers,
                       ApId = 120.</description>
                    <Special_Constants>
                       <valid_maximum>255</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>OneHertz</name>
                    <field_number>11</field_number>
                    <field_location unit="byte">17</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>External 1-Hz Time Sync Pulse Flag (1 = not
                       received). Part of CCSDS Primary and Secondary Headers,
                       ApId = 120.</description>
                    <Special_Constants>
                       <valid_maximum>255</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Field_Binary>
                    <name>SerialNumber</name>
                    <field_number>12</field_number>
                    <field_location unit="byte">18</field_location>
                    <data_type>UnsignedByte</data_type>
                    <field_length unit="byte">1</field_length>
                    <description>Instrument Serial Number. Part of CCSDS Primary and Secondary Headers,
                       ApID = 120.</description>
                    <Special_Constants>
                       <valid_maximum>255</valid_maximum>
                       <valid_minimum>0</valid_minimum>
                    </Special_Constants>
                </Field_Binary>
                <Group_Field_Binary>
                      <name>PHA Output</name>
                      <group_number>1</group_number>
                      <repetitions>48</repetitions>
                      <fields>0</fields>
                      <groups>1</groups>
                      <description>
                            PHA outputs from the detectors during 1 second of time. This
                            group covers 48 detection events. For each such event there are
                            6 fields, which contain PHA outputs for 6 detectors. If there are
                            fewer than 48 detection events during the 1 second, the rest of
                            the fields after the events will have values of 0.
                      </description>
                      <group_location unit="byte">19</group_location>
                      <group_length unit="byte">576</group_length>
                    <Group_Field_Binary>
                        <repetitions>6</repetitions>
                        <fields>1</fields>
                        <groups>0</groups>
                        <description>
                            PHA outputs for each of the 6 detectors. 
                        </description>
                        <group_location unit="byte">1</group_location>
                        <group_length unit="byte">12</group_length>
                        <Field_Binary>
                            <name>EventAmp</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>
                                Detector PHA Output for Single Event.
                            </description>
                            <Special_Constants>
                                <valid_maximum>65535</valid_maximum>
                                <valid_minimum>0</valid_minimum>
                            </Special_Constants>
                        </Field_Binary>
                    </Group_Field_Binary>
                </Group_Field_Binary>
            </Record_Binary>
        </Table_Binary>
    </File_Area_Observational>
</Product_Observational>
