<?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:tablebin.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-12</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>
            <name>Observing System for PHX+TT</name>
            <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>Observing System for PHX+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>BIN_TABLE_COLLAPSED.TAB</file_name>
            <local_identifier>ATM_PRODUCT_TABLE_BINARY_ID</local_identifier>
            <creation_date_time>2009-04-30T12:12:12Z</creation_date_time>
            <file_size unit="byte">2022</file_size>
            <records>3727</records>
            <md5_checksum>b8a38e7ba9d5d137be849f606e52747f</md5_checksum>
        </File> 
        <Table_Binary>
            <local_identifier>PHX-M-TT-5-WIND-VEL-DIR_TABLE_BINARY</local_identifier>
            <offset unit="byte">0</offset>
            <records>3727</records>
            <Record_Binary>
                <fields>10</fields>
                <groups>0</groups>
                <record_length unit="byte">88</record_length>
                
                <Field_Binary>
                    <name>SOL</name>
                    <field_number>1</field_number>
                    <field_location unit="byte">1</field_location>
                    <data_type>SignedMSB4</data_type>
                    <field_length unit="byte">3</field_length>
                    <field_format>I3</field_format>
                    <description>PHOENIX Sol number</description>
                </Field_Binary>
                <Field_Binary>
                    <name>LTST</name>
                    <field_number>2</field_number>
                    <field_location unit="byte">5</field_location>
                    <data_type>IEEE754LSBDouble</data_type>
                    <field_length unit="byte">5</field_length>
                    <field_format>F5.3</field_format>
                    <description>Local True Solar Time</description>
                </Field_Binary>
                <Field_Binary>
                    <name>LMST</name>
                    <field_number>3</field_number>
                    <field_location unit="byte">11</field_location>
                    <data_type>IEEE754LSBDouble</data_type>
                    <field_length unit="byte">9</field_length>
                    <field_format>F9.5</field_format>
                    <description>Local Mean Solar Time</description>
                </Field_Binary>
                <Field_Binary>
                    <name>V</name>
                    <field_number>4</field_number>
                    <field_location unit="byte">21</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <name>DV+</name>
                    <field_number>5</field_number>
                    <field_location unit="byte">27</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <name>DV-</name>
                    <field_number>6</field_number>
                    <field_location unit="byte">32</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <name>DIR</name>
                    <field_number>7</field_number>
                    <field_location unit="byte">40</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <name>DDIR</name>
                    <field_number>8</field_number>
                    <field_location unit="byte">51</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <name>EXPOSURE TIME</name>
                    <field_number>9</field_number>
                    <field_location unit="byte">60</field_location>
                    <data_type>IEEE754LSBDouble</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_Binary>
                <Field_Binary>
                    <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_Binary>
            </Record_Binary>
        </Table_Binary>
    </File_Area_Observational>
</Product_Observational>
