<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://starbase.jpl.nasa.gov/pds4/1400/dph_example_products/xml_schema/PDS4_PDS_1400.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:dph="http://pds.nasa.gov/pds4/dph/v01"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1  https://starbase.jpl.nasa.gov/pds4/1400/dph_example_products/xml_schema/PDS4_PDS_1400.xsd
                        http://pds.nasa.gov/pds4/dph/v01 https://starbase.jpl.nasa.gov/pds4/1400/dph_example_products/xml_schema/dph_example_dict_1400.xsd"> 
    
    <Identification_Area>
        <logical_identifier>urn:nasa:pds:example.dph.sampleproducts:exampleproducts:headerandtablechar.phx-m-tt-5-wind-vel-dir-v1.0</logical_identifier>
        <version_id>1.0</version_id>
        <title>PHOENIX Mars Wind Experiment</title>
        <information_model_version>1.4.0.0</information_model_version>
        <product_class>Product_Observational</product_class>
        <Modification_History>
            <Modification_Detail>
                <modification_date>2012-01-10</modification_date>
                <version_id>1.0</version_id>
                <description>
                    extracted metadata from PDS3 catalog and
                    modified to comply with PDS4 Information Model
                </description>
            </Modification_Detail>
        </Modification_History>
    </Identification_Area>
 
    <Observation_Area>
        <comment>Observational Intent</comment>
        <Time_Coordinates>
            <start_date_time>2008-08-26T20:36:36.856Z</start_date_time>
            <stop_date_time>2008-10-27T15:32:50.952Z</stop_date_time>
            <local_mean_solar_time>not applicable</local_mean_solar_time>
            <local_true_solar_time>not applicable</local_true_solar_time>
        </Time_Coordinates>        
        <Primary_Result_Summary>
            <!-- deprecated
            <type>Image</type>
            -->
            <purpose>Science</purpose>
            <!-- deprecated
            <data_regime>Visible</data_regime>
            -->
            <processing_level>Raw</processing_level>
            <description>
                This is where a generic description of the product goes            
            </description>
        </Primary_Result_Summary>
        <Investigation_Area>
            <name>PHOENIX</name>
            <type>Mission</type>
            <Internal_Reference>
                <lidvid_reference>urn:nasa:pds:context:investigation:mission.phoenix::1.0</lidvid_reference>
                <reference_type>data_to_investigation</reference_type>
            </Internal_Reference>
        </Investigation_Area>
        <Observing_System>
            <Observing_System_Component>
                <name>PHX</name>
                <type>Spacecraft</type>
                <description>instrument_host PHX</description>
                <Internal_Reference>
                    <lid_reference>urn:nasa:pds:context:instrument_host:instrument_host.phx</lid_reference>
                    <reference_type>is_instrument_host</reference_type>
                </Internal_Reference>
             </Observing_System_Component>
             <Observing_System_Component>
                <name>TT</name>
                <type>Instrument</type>
                <description>instrument TT</description>
                <Internal_Reference>
                    <lid_reference>urn:nasa:pds:context:instrument:instrument.tt__phx</lid_reference>
                    <reference_type>is_instrument</reference_type>
                </Internal_Reference>
            </Observing_System_Component>
        </Observing_System>       
        <Target_Identification>
            <name>MARS</name>
            <type>Planet</type>
            <description>description of MARS goes here</description>
            <Internal_Reference>
                <lidvid_reference>urn:nasa:pds:context:target:target.mars::1.0</lidvid_reference>
                <reference_type>data_to_target</reference_type>
             </Internal_Reference>
        </Target_Identification>
        
        <!-- ============================================================ -->
        <!-- Reference the attributes that were imported from the         -->
        <!-- local dictionary (using the local namespace (dph)            -->
        <!-- ============================================================ -->                   
        <Mission_Area>
            <dph:spacecraft_clock_start_count>904250279.448</dph:spacecraft_clock_start_count>
            <dph:spacecraft_clock_stop_count>909588864.598</dph:spacecraft_clock_stop_count>
        </Mission_Area>
        <Discipline_Area>
        </Discipline_Area>
    </Observation_Area>
    
    <Reference_List>
        <Internal_Reference>
            <lidvid_reference>urn:nasa:pds:context:investigation:mission.phoenix::1.0</lidvid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:context:instrument_host:instrument_host.phx</lid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:context:instrument:instrument.tt__phx</lid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:context:target:target.mars</lid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
        <Internal_Reference>
            <lid_reference>urn:nasa:pds:context:node:node.atmos</lid_reference>
            <reference_type>data_to_document</reference_type>
        </Internal_Reference>
    </Reference_List>
  
    <File_Area_Observational>
        <File>
            <file_name>PDS4_ATM_TABLE_CHAR.TAB</file_name>
            <local_identifier>ATM_PRODUCT_TABLE_CHAR_ID</local_identifier>
            <creation_date_time>2009-04-30T12:12:12Z</creation_date_time>
            <file_size unit="byte">2024</file_size>
            <records>23</records>
            <md5_checksum>d41d8cd98f00b204e9800998ecf8427e</md5_checksum>
       </File>

        <!-- ============================================================ -->
        <!-- Reference the HEADER                                         -->
        <!--   - start_byte = 1                                           -->
        <!--   - length     = 100                                         -->
        <!--   - end_byte   = 100                                         -->
        <!-- ============================================================ -->                   
        <Header>
            <name>example Header object</name>
            <local_identifier>PHX-M-TT-5-WIND-VEL-DIR_HEADER</local_identifier>
            <offset unit="byte">0</offset>
            <object_length unit="byte">100</object_length>
            <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
            <description>insert description here</description>
        </Header>
        
        <!-- ============================================================ -->
        <!-- Reference the TABLE_CHARACTER                                -->
        <!--   - start_byte = 101                                         -->
        <!-- ============================================================ -->                   
        <Table_Character>
            <local_identifier>PHX-M-TT-5-WIND-VEL-DIR_TableChar</local_identifier>
            <offset unit="byte">101</offset>
            <records>23</records>
            <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
            <Record_Character>
                <fields>10</fields>
                <groups>0</groups>
                <record_length unit="byte">88</record_length>
                
                <Field_Character>
                         <name>SOL</name>
                         <field_number>1</field_number>
                         <field_location unit="byte">1</field_location>
                         <data_type>ASCII_Integer</data_type>
                         <field_length unit="byte">3</field_length>
                         <field_format>I3</field_format>
                         <description>PHOENIX Sol number</description>
                     </Field_Character>                                         
                     <Field_Character>
                         <name>LTST</name>
                         <field_number>2</field_number>
                         <field_location unit="byte">5</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">5</field_length>
                         <field_format>F5.3</field_format>
                         <description>Local True Solar Time</description>
                     </Field_Character>
                     <Field_Character>
                         <name>LMST</name>
                         <field_number>3</field_number>
                         <field_location unit="byte">11</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">9</field_length>
                         <field_format>F9.5</field_format>
                         <description>Local Mean Solar Time</description>
                     </Field_Character>
                     <Field_Character>
                         <name>V</name>
                         <field_number>4</field_number>
                         <field_location unit="byte">21</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">5</field_length>
                         <field_format>F5.3</field_format>
                         <unit>m/s</unit>
                         <description>Wind speed in meters per second</description>
                     </Field_Character>
                     <Field_Character>
                         <name>DV+</name>
                         <field_number>5</field_number>
                         <field_location unit="byte">27</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">4</field_length>
                         <field_format>F4.2</field_format>
                         <unit>m/s</unit>
                         <description>Error in wind speed (positive)</description>
                     </Field_Character>
                     <Field_Character>
                         <name>DV-</name>
                         <field_number>6</field_number>
                         <field_location unit="byte">32</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">7</field_length>
                         <field_format>F7.5</field_format>
                         <unit>m/s</unit>
                         <description>Error in wind speed (negative)</description>
                     </Field_Character>
                     <Field_Character>
                         <name>DIR</name>
                         <field_number>7</field_number>
                         <field_location unit="byte">40</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">10</field_length>
                         <field_format>F10.6</field_format>
                         <unit>deg</unit>
                         <description>Wind direction in degrees given in
                             meteorological convention (0 = from N,
                             90 = from E, 180 = from S, 270 = from W)
                         </description>
                     </Field_Character>
                     <Field_Character>
                         <name>DDIR</name>
                         <field_number>8</field_number>
                         <field_location unit="byte">51</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">8</field_length>
                         <field_format>F8.4</field_format>
                         <unit>deg</unit>
                         <description>Error in direction (given in degrees).
                             If dv+ is larger than v, then this is
                             set to 180</description>
                     </Field_Character>
                     <Field_Character>
                         <name>EXPOSURE TIME</name>
                         <field_number>9</field_number>
                         <field_location unit="byte">60</field_location>
                         <data_type>ASCII_Real</data_type>
                         <field_length unit="byte">7</field_length>
                         <field_format>F7.1</field_format>
                         <unit>ms</unit>
                         <description>Exposure time by SSI in milliseconds</description>
                     </Field_Character>
                     <Field_Character>
                         <name>FILE NAME</name>
                         <field_number>10</field_number>
                         <field_location unit="byte">69</field_location>
                         <data_type>ASCII_File_Name</data_type>
                         <field_length unit="byte">17</field_length>
                         <field_format>A17</field_format>
                         <description>Image filename used for the analysis</description>
                     </Field_Character>                     
                </Record_Character>

        </Table_Character>
    </File_Area_Observational>
    
</Product_Observational>
