<?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"?>
<?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_1B00.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_rs_derived:data:ggmes_20v02_shb</logical_identifier>
    <version_id>1.0</version_id>
    <title>MESSENGER Spherical Harmonic Gravity Model product: ggmes_20v02_shb</title>
    <information_model_version>1.11.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2018-07-05</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>2008-01-07Z</start_date_time>
      <stop_date_time>2011-08-23Z</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>Radio Science Subsystem</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:rss.mess</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Mercury</name>
      <type>Planet</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:target:planet.mercury</lid_reference>
        <reference_type>data_to_target</reference_type>
      </Internal_Reference>
    </Target_Identification>
    <Mission_Area>
      <mess:MESSENGER>
        <mess:standard_data_product_id>SHBDR</mess:standard_data_product_id>
        <mess:software_name>shbgrv;v1.0</mess:software_name>
      </mess:MESSENGER>
    </Mission_Area>
  </Observation_Area>
    <File_Area_Observational>
    <File>
      <file_name>ggmes_20v02_shb.dat</file_name>
      <creation_date_time>2011-09-15</creation_date_time>
      <comment>
        This file contains coefficients and related data for a spherical harmonic model
        of the Hermean gravity field. Input data are from radio tracking of the MErcury
        Surface, Space ENvironment, GEochemistry, and Ranging (MESSENGER) 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 MESSENGER Mercury
        gravity model is in the form of a Spherical Harmonics Binary Data Record (SHBDR).
        It has been produced by the MESSENGER Radio Science at NASA GSFC, and extends to degree
        and order 20. A Kaula rule of 1.25E-05/L^2 was applied. Data up to August 23rd, 2011
        are included in the solution. The model was published in Science in April 2012 by
        Smith et al. (doi:10.1126/science.1218809).
      </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>437</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">4096</offset>
      <records>437</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">7680</offset>
      <records>95703</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.</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>ggmes_20v02_shb.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>
