<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1800.sch"
   schematypens="http://purl.oclc.org/dsdl/schematron"?>
<Product_Observational
   xmlns="http://pds.nasa.gov/pds4/pds/v1"
   xmlns:pds="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_1800.xsd">
       <Identification_Area>
             <logical_identifier>urn:nasa:pds:maven.rose.raw:calibration.dlf:mvn_rse_l2_dlf_20230504t175120</logical_identifier>
             <version_id>1.0</version_id>
             <title>MAVEN ROSE Downlink Predicted Frequency</title>
             <information_model_version>1.8.0.0</information_model_version>
             <product_class>Product_Observational</product_class>
             <Citation_Information>
                   <author_list>Paul Withers</author_list>
                   <publication_year>2018</publication_year>
                   <description>MAVEN ROSE Downlink Predicted Frequencies</description>
            </Citation_Information>
             <Modification_History>
                   <Modification_Detail>
                         <modification_date>2023-07-24</modification_date>
                         <version_id>1.0</version_id>
                         <description>Initial version</description>
                  </Modification_Detail>
            </Modification_History>
      </Identification_Area>
       <Observation_Area>
             <Time_Coordinates>
                   <start_date_time>2023-05-04T17:51:20.000Z</start_date_time>
                   <stop_date_time>2023-05-05T07:08:16.000Z</stop_date_time>
            </Time_Coordinates>
             <Primary_Result_Summary>
                   <purpose>Calibration</purpose>
                   <processing_level>Calibrated</processing_level>
                   <description>MAVEN ROSE downlink predicted frequencies</description>
            </Primary_Result_Summary>
             <Investigation_Area>
                   <name>Mars Atmosphere And Volatile EvolutioN Mission</name>
                   <type>Mission</type>
                   <Internal_Reference>
                         <lid_reference>urn:nasa:pds:context:investigation:mission.maven</lid_reference>
                         <reference_type>data_to_investigation</reference_type>
                  </Internal_Reference>
            </Investigation_Area>
             <Observing_System>
                   <Observing_System_Component>
                         <name>MAVEN</name>
                         <type>Spacecraft</type>
                         <Internal_Reference>
                               <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.maven</lid_reference>
                               <reference_type>is_instrument_host</reference_type>
                        </Internal_Reference>
                  </Observing_System_Component>
                   <Observing_System_Component>
                         <name>RSE</name>
                         <type>Instrument</type>
                         <Internal_Reference>
                               <lid_reference>urn:nasa:pds:context:instrument:rss.maven</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>
       <Reference_List>
            <Internal_Reference>
                  <lid_reference>urn:nasa:pds:maven.rose.raw:document:dlf</lid_reference>
                  <reference_type>data_to_document</reference_type>
            </Internal_Reference>
       </Reference_List>
       <File_Area_Observational>
             <File>
                   <file_name>mvn_rse_l2_dlf_20230504T175120_v01_r00.tab</file_name>
                   <creation_date_time>2023-07-24T11:24:32</creation_date_time>
                   <file_size unit="byte">70438</file_size>
                   <md5_checksum>041fc8e47bdb18423085c2aa80515bad</md5_checksum>
             </File>
             <Header>
                   <name>File Header</name>
                   <offset unit="byte">0</offset>
                   <object_length unit="byte">1640</object_length>
                   <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
                   <description>
                         File header with production identification including spacecraft ID, DSN 
                         receiving antenna number, start time, stop time, file creation time, 
                         uplink band, and downlink band.
                   </description>
             </Header>
             <Header>
                   <name>1-WAY Table Header</name>
                   <offset unit="byte">1640</offset>
                   <object_length unit="byte">328</object_length>
                   <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
                   <description>
                         Header for 1-WAY Predict Table.  Information includes tracking mode, start
                         date and time, end date and time, and column headers for the data which
                         follow.
                   </description>
             </Header>
             <Table_Character>
                   <name>MAVEN ROSE 1-WAY Frequency Prediction Coefficients</name>
                   <offset unit="byte">1968</offset>
                   <records>335</records>
                   <description>
                         Everett polynomial coefficients for 1-WAY frequency prediction.
                         To calculate predicted frequency (Fp) at time t use the following equations:
                         
                         Fp(t) = (1-p)*f0 + g2*(1-p)*d20 + g4(1-p)*d40 + p*f1 + g2(p)*d21 + g4(p)*d41
                         
                         where
                              f0 and f1 are frequencies at consecutive times t0 and t1 in the table
                              p = (t-t0)/(t1-t0)
                              g2(x) = x*(x*x-1)/6
                              g4(x) = x*(x*x-1)*(x*x-4)/120
                   </description>
                   <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
                   <Record_Character>
                         <fields>6</fields>
                         <groups>0</groups>
                         <record_length unit="byte">82</record_length>
                         <Field_Character>
                               <name>Time</name>
                               <field_number>1</field_number>
                               <field_location unit="byte">1</field_location>
                               <data_type>ASCII_Time</data_type>
                               <field_length unit="byte">12</field_length>
                               <description>UTC time at the DSN receiving station in hh:mm:ss.sss format</description>
                         </Field_Character>
                         <Field_Character>
                               <name>Frequency</name>
                               <field_number>2</field_number>
                               <field_location unit="byte">13</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">18</field_length>
                               <field_format>%18.4f</field_format>
                               <unit>Hz</unit>
                               <description>Predicted downlink frequency at Time</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d20</name>
                               <field_number>3</field_number>
                               <field_location unit="byte">31</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">13</field_length>
                               <field_format>%13.3f</field_format>
                               <description>Everett polynomial coefficient d20</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d21</name>
                               <field_number>4</field_number>
                               <field_location unit="byte">44</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">13</field_length>
                               <field_format>%13.3f</field_format>
                               <description>Everett polynomial coefficient d21</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d40</name>
                               <field_number>5</field_number>
                               <field_location unit="byte">57</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">12</field_length>
                               <field_format>%12.2f</field_format>
                               <description>Everett polynomial coefficient d40</description> 
                         </Field_Character>             
                         <Field_Character>
                               <name>d41</name>
                               <field_number>6</field_number>
                               <field_location unit="byte">69</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">12</field_length>
                               <field_format>%12.2f</field_format>
                               <description>Everett polynomial coefficient d41</description> 
                         </Field_Character>             
                   </Record_Character>
             </Table_Character>
             <Header>
                   <name>2-WAY Table Header</name>
                   <offset unit="byte">29438</offset>
                   <object_length unit="byte">328</object_length>
                   <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
                   <description>
                         Header for 2-WAY Predict Table.  Information includes tracking mode, start
                         date and time, end date and time, and column headers for the data which
                         follow.
                   </description>
             </Header>
             <Table_Character>
                   <name>MAVEN ROSE 2-WAY Frequency Prediction Coefficients</name>
                   <offset unit="byte">29766</offset>
                   <records>495</records>
                   <description>
                         Everett polynomial coefficients for 2-WAY frequency prediction.
                         To calculate predicted frequency (Fp) at time t use the following equations:
                         
                         Fp(t) = (1-p)*f0 + g2*(1-p)*d20 + g4(1-p)*d40 + p*f1 + g2(p)*d21 + g4(p)*d41
                         
                         where
                              f0 and f1 are frequencies at consecutive times t0 and t1 in the table
                              p = (t-t0)/(t1-t0)
                              g2(x) = x*(x*x-1)/6
                              g4(x) = x*(x*x-1)*(x*x-4)/120
                   </description>
                   <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
                   <Record_Character>
                         <fields>6</fields>
                         <groups>0</groups>
                         <record_length unit="byte">82</record_length>
                         <Field_Character>
                               <name>Time</name>
                               <field_number>1</field_number>
                               <field_location unit="byte">1</field_location>
                               <data_type>ASCII_Time</data_type>
                               <field_length unit="byte">12</field_length>
                               <description>UTC time at the DSN receiving station in hh:mm:ss.sss format</description>
                         </Field_Character>
                         <Field_Character>
                               <name>Frequency</name>
                               <field_number>2</field_number>
                               <field_location unit="byte">13</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">18</field_length>
                               <field_format>%18.4f</field_format>
                               <unit>Hz</unit>
                               <description>Predicted downlink frequency at Time</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d20</name>
                               <field_number>3</field_number>
                               <field_location unit="byte">31</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">13</field_length>
                               <field_format>%13.3f</field_format>
                               <description>Everett polynomial coefficient d20</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d21</name>
                               <field_number>4</field_number>
                               <field_location unit="byte">44</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">13</field_length>
                               <field_format>%13.3f</field_format>
                               <description>Everett polynomial coefficient d21</description>
                         </Field_Character>
                         <Field_Character>
                               <name>d40</name>
                               <field_number>5</field_number>
                               <field_location unit="byte">57</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">12</field_length>
                               <field_format>%12.2f</field_format>
                               <description>Everett polynomial coefficient d40</description> 
                         </Field_Character>             
                         <Field_Character>
                               <name>d41</name>
                               <field_number>6</field_number>
                               <field_location unit="byte">69</field_location>
                               <data_type>ASCII_Real</data_type>
                               <field_length unit="byte">12</field_length>
                               <field_format>%12.2f</field_format>
                               <description>Everett polynomial coefficient d41</description> 
                         </Field_Character>             
                   </Record_Character>
             </Table_Character>
      </File_Area_Observational>
</Product_Observational>
