<?xml version="1.0" ?>
 
<xsd:schema  
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	
						<!-- documentation of schema file --> 
	<xsd:annotation> 
		<xsd:documentation xml:lang="en"> 
			This is a DIG schema file, 
			which outlines the format of a DIG data file. 
			Version:  2.0
			Last Updated:  3/6/03
		</xsd:documentation> 
	</xsd:annotation> 
 
						<!-- schema tree --> 
	<xsd:element name="DIG_DATA">
		<xsd:complexType> 
			<xsd:sequence> 
				<xsd:element name="main_header"> 
					<xsd:complexType>
						<xsd:sequence> 
							<xsd:element name="comments" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
							<xsd:element name="dimensions" type="dimensionType"/>
							<xsd:element name="sampling_rate_x" type="samplingXType"/>
							<xsd:element name="sampling_rate_y" type="samplingYType"/>
							<xsd:element name="sampling_rate_z" type="samplingZType"/>
						</xsd:sequence> 
						<xsd:attribute name="type" type="mainType" use="required"/> 
						<xsd:attribute name="title" type="mainTitle" use="required"/> 
						<xsd:attribute name="channels" type="channelType" use="required"/> 
						<xsd:attribute name="number_of_arrays" type="xsd:positiveInteger" use="required"/> 
						<xsd:attribute name="number_of_array_sets" type="xsd:positiveInteger" use="required"/> 
						<xsd:attribute name="endian" type="endianType" use="required"/>
						<xsd:attribute name="value_type" type="valueType" use="required"/>
						<xsd:attribute name="data_type" type="dataType" use="required"/>
						<xsd:attribute name="data_format" type="dataFormatType" use="required"/>
						<xsd:attribute name="grid_type" type="gridType" use="required"/>
						<xsd:attribute name="basis_function" type="basisType" use="required"/>
						<xsd:attribute name="unit" type="unitType" use="required"/>
						<xsd:attribute name="other_unit" type="otherUnitType" use="optional"/>
					</xsd:complexType> 
				</xsd:element>  <!-- main_header -->
				<xsd:element name="application_header" type="applicationType" minOccurs="0" maxOccurs="1"/>
				<xsd:element name="array_set_header" minOccurs="1" maxOccurs="unbounded"> 
					<xsd:complexType>
						<xsd:sequence> 
							<xsd:element name="comments" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
							<xsd:element name="parameters" type="parametersType" minOccurs="0" maxOccurs="1"/>
							<xsd:element name="array_header" minOccurs="1" maxOccurs="unbounded"> 
								<xsd:complexType>
									<xsd:sequence>
										<xsd:element name="comments" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
									</xsd:sequence>
									<xsd:attribute name="enumeration_number" type="xsd:nonNegativeInteger" use="required"/> 
								</xsd:complexType>
							</xsd:element>  <!-- array_header -->
						</xsd:sequence> 
						<xsd:attribute name="type" type="setType" use="required"/> 
						<xsd:attribute name="title" type="setTitle" use="required"/>
					</xsd:complexType> 
				</xsd:element>  <!-- array_set_header -->
			</xsd:sequence> 
		</xsd:complexType>
	</xsd:element>  <!-- DIG_DATA -->

</xsd:schema>
