<?xml version="1.0" encoding="UTF-8"?>
  <!-- PDS4 XML/Schema for Name Space Id:em16_tgo_frd  Version:1.2.0.0 - Tue Jan 26 14:57:48 CET 2021 -->
  <!-- Generated from the PDS4 Information Model Version 1.15.0.0 - System Build 11a -->
  <!-- *** This PDS4 product schema is an operational deliverable. *** -->
  <!--                                                                           -->
  <!--               Dictionary Stack                                            -->
  <!-- 1.15.0.0 - pds: - Common Dictionary                                       -->
  <!-- 1.2.0.0 - em16_tgo_frd: - ExoMars2016/FREND LDD                           -->
  <!--   file:Ingest_FREND_IM15_v10.xml                                          -->
  <!--                                                                           -->
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://psa.esa.int/psa/em16/tgo/frd/v1"
    xmlns:em16_tgo_frd="http://psa.esa.int/psa/em16/tgo/frd/v1"
    xmlns:pds="http://pds.nasa.gov/pds4/pds/v1"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    version="1.2.0.0">
 
    <xs:import namespace="http://pds.nasa.gov/pds4/pds/v1" schemaLocation="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1F00.xsd"/>
 
  <xs:annotation>
    <xs:documentation>

        LDD for the FREND instrument on board ExoMars 2016/TGO
    
    </xs:documentation>
  </xs:annotation>
 
  <xs:element name="FREND_Data" type="em16_tgo_frd:FREND_Data"> </xs:element>

  <xs:complexType name="FREND_Data">
    <xs:annotation>
      <xs:documentation>Description of a FREND instrument
        observation</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Gap" type="em16_tgo_frd:Gap" minOccurs="0" maxOccurs="unbounded"> </xs:element>
      <xs:element name="utc_time_n" type="em16_tgo_frd:utc_time_n" minOccurs="0" maxOccurs="1"> </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Gap">
    <xs:annotation>
      <xs:documentation>Gap in measurement due to missing or bad
        data</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="gap_id" type="em16_tgo_frd:gap_id" minOccurs="0" maxOccurs="1"> </xs:element>
      <xs:element name="gap_start" type="em16_tgo_frd:gap_start" minOccurs="0" maxOccurs="1"> </xs:element>
      <xs:element name="gap_end" type="em16_tgo_frd:gap_end" minOccurs="0" maxOccurs="1"> </xs:element>
    </xs:sequence>
  </xs:complexType>

    <xs:annotation>
      <xs:documentation>This section contains the simpleTypes that provide more constraints
        than those at the base data type level. The simpleTypes defined here build on the base data
        types. This is another component of the common dictionary and therefore falls within the
        common namespace.
      </xs:documentation>
    </xs:annotation>

  <xs:simpleType name="gap_end">
    <xs:annotation>
      <xs:documentation>End time of a time interval with bad or missing
        data</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Date_Time_YMD_UTC">
  <!-- format="YYYY-MM-DDTHH:MM:SS.SSSSSSZ" -->
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="gap_id">
    <xs:annotation>
      <xs:documentation>A running number of gaps in dosimeter
        data</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Real">
     <xs:minInclusive value="-1.7976931348623157e308"/>
     <xs:maxInclusive value="1.7976931348623157e308"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="gap_start">
    <xs:annotation>
      <xs:documentation>Start time of a time interval with bad or
        missing data</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Date_Time_YMD_UTC">
  <!-- format="YYYY-MM-DDTHH:MM:SS.SSSSSSZ" -->
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="utc_time_n">
    <xs:annotation>
      <xs:documentation>UTC time of this frame, derived from spacecraft
        time through SPICE.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Date_Time_YMD_UTC">
  <!-- format="YYYY-MM-DDTHH:MM:SS.SSSSSSZ" -->
	   </xs:restriction>
  </xs:simpleType>
</xs:schema>
