<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1E00.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_1E00.xsd">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:lp_rs_jpl_gravity_derived:data_shb:jgl100k1_shb</logical_identifier>
    <version_id>1.0</version_id>
    <title>Lunar Prospector Gravity Model: jgl100k1_shb</title>
    <information_model_version>1.14.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2021-01-12</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>1966-08-10T00:00:00Z</start_date_time>
      <stop_date_time>1999-07-30T23:59:59Z</stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
      <name>Lunar Prospector</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:investigation:mission.lunar_prospector</lid_reference>
        <reference_type>data_to_investigation</reference_type>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
        <name>Lunar Prospector</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.lp</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>Radio Science Subsystem</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:lp.rss</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>
  </Observation_Area>

  <File_Area_Observational>
    <File>
      <file_name>jgl100k1.shb</file_name>
      <creation_date_time>1999-10-05T00:00:00</creation_date_time>
      <comment>
        This file contains coefficients
        and related data for a spherical harmonic model of the Lunar
        gravity field. Input data are from radio tracking of the Lunar
        Prospector spacecraft. This product is a set of binary tables:
        a header table, a names table, a coefficients table, and a
        covariance table. Definitions of the tables follow. This 
        LP Lunar gravity model is in the form of a Spherical
        Harmonics Binary Data Record (SHBDR). It has been produced by 
        the LP Gravity Science Team at JPL under the direction of 
        A.S. Konopliv.
      </comment>
    </File>
    <Table_Binary>
      <name>SHBDR Header Table</name>
      <offset unit="byte">0</offset>
      <records>1</records>
      <description>The SHBDR Header includes descriptive information about the spherical
        harmonic coefficients that follow in SHBDR Coefficients Table. The header consists
        of a single record of nine data columns requiring 56 bytes. The Header is followed by
        a pad of binary integer zeroes.</description>
      <Record_Binary>
        <fields>9</fields>
        <groups>0</groups>
        <record_length unit="byte">56</record_length>
        <Field_Binary>
          <name>reference radius</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>
          <description>The assumed reference radius of the spherical planet.</description>
        </Field_Binary>
        <Field_Binary>
          <name>constant</name>
          <field_number>2</field_number>
          <field_location unit="byte">9</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>For a gravity field model
            the gravitational constant GM in km cubed per second
            squared for the planet. For a topography model, set to 1.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>uncertainty in constant</name>
          <field_number>3</field_number>
          <field_location unit="byte">17</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <description>For a gravity field model the uncertainty in the 
            gravitational constant GM in km cubed per second squared for
            the planet. For a topography model, set to 0.</description>
        </Field_Binary>
        <Field_Binary>
          <name>degree of field</name>
          <field_number>4</field_number>
          <field_location unit="byte">25</field_location>
          <data_type>SignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Degree of the model field.</description>
        </Field_Binary>
        <Field_Binary>
          <name>order of field</name>
          <field_number>5</field_number>
          <field_location unit="byte">29</field_location>
          <data_type>SignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Order of the model field.</description>
        </Field_Binary>
        <Field_Binary>
          <name>normalization state</name>
          <field_number>6</field_number>
          <field_location unit="byte">33</field_location>
          <data_type>SignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>The normalization indicator.
            For gravity field:
            0   coefficients are unnormalized
            1   coefficients are normalized
            2   other.</description>
        </Field_Binary>
        <Field_Binary>
          <name>number of names</name>
          <field_number>7</field_number>
          <field_location unit="byte">37</field_location>
          <data_type>SignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>Number of valid names in
            the SHBDR Names Table. Also, the number of valid
            coefficients in the SHBDR Coefficients Table.</description>
        </Field_Binary>
        <Field_Binary>
          <name>reference longitude</name>
          <field_number>8</field_number>
          <field_location unit="byte">41</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <unit>degree</unit>
          <description>Reference longitude for the spherical harmonic expansion; normally 0.</description>
        </Field_Binary>
        <Field_Binary>
          <name>reference latitude</name>
          <field_number>9</field_number>
          <field_location unit="byte">49</field_location>
          <data_type>IEEE754MSBDouble</data_type>
          <field_length unit="byte">8</field_length>
          <unit>degree</unit>
          <description>Reference latitude for the spherical harmonic expansion; normally 0.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
    
    <Table_Binary>
      <name>SHBDR Names Table</name>
      <offset unit="byte">512</offset>
      <records>10198</records>
      <description>
        The SHBDR Names Table contains names for the solution parameters (including
        gravity field coefficients) which will follow in SHBDR Coefficients Table.
        The order of the names in SHBDR Names Table corresponds identically to the
        order of the parameters in SHBDR Coefficients Table. Each coefficient name
        is of the form Cij or Sij where i is the degree of the coefficient and j is 
        the order of the coefficient. Both indices are three-digit zero-filled
        right-justified ASCII character strings (for example, C010005 for the 10th
        degree 5th order C coefficient, or S002001 for the 2nd degree 1st order
        S coefficient). The eighth byte in the table is an ASCII blank used to ensure
        that the row length is equal to 8 bytes. Names of other solution parameters are
        limited to 8 ASCII characters; if less than 8, they will be left-justified and
        padded with ASCII blanks. The Names Table itself will be padded with ASCII blanks,
        if necessary.</description>
      <Record_Binary>
        <fields>1</fields>
        <groups>0</groups>
        <record_length unit="byte">8</record_length>
        <Field_Binary>
          <name>parameter name</name>
          <field_number>1</field_number>
          <field_location unit="byte">1</field_location>
          <data_type>ASCII_String</data_type>
          <field_length unit="byte">8</field_length>
          <description>The name of the coefficient or other solution parameter,
            left-justified and padded with ASCII blanks (if needed) to 8 characters.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
    
    <Table_Binary>
      <name>SHBDR Coefficients Table</name>
      <offset unit="byte">82432</offset>
      <records>10198</records>
      <description>The SHBDR Coefficients Table contains the coefficients and other
        solution parameters for the spherical harmonic model. The order of the 
        coefficients in this table corresponds exactly to the order of the coefficient
        and parameter names in SHBDR Names Table. The SHBDR Coefficients Table will be
        padded with double precision zeroes.</description>
      <Record_Binary>
        <fields>1</fields>
        <groups>0</groups>
        <record_length unit="byte">8</record_length>
        <Field_Binary>
          <name>coefficient value</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>
          <description>A coefficient Cij or Sij or other solution parameter as specified
            in the SHBDR Names Table.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
    
    <Table_Binary>
      <name>SHBDR Covariance Table</name>
      <offset unit="byte">164352</offset>
      <records>52004701</records>
      <description>The SHBDR Covariance Table contains the covariances for the spherical
        harmonic model coefficients and other solution parameters. The order of the
        covariances in this table is defined by the product of the SHBDR Names Table with
        its transpose, except that redundant terms are omitted on their second occurrence.
        The SHBDR Covariance Table will be padded with double precision zeroes.
        NOTE: The COVARIANCE data is a row ordered (stored) upper triangular matrix.</description>
      <Record_Binary>
        <fields>1</fields>
        <groups>0</groups>
        <record_length unit="byte">8</record_length>
        <Field_Binary>
          <name>covariance value</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>
          <description>The covariance value for the coefficients and other solution parameters 
            specified by the product of SHBDR Names Table with its transpose, after omitting
            redundant terms.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
  </File_Area_Observational>
  
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>jgl100k1.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>
