<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://water.usgs.gov/XML/AQ" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://water.usgs.gov/XML/AQ" elementFormDefault="qualified" version="1.0">
	<xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
	<xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
	<xsd:element name="CircuitNotes">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>A circuit defines a group of reference points and their elevations derived from a single origin with multiple instrument heights.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="CircuitNumber" type="xsd:integer" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>Sequence number identifying the cricuit within the gaging levels task.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="StartDateTime" type="DateTimeWithDatum" minOccurs="1">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The starting date and time of the circuit.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EndDateTime" type="DateTimeWithDatum" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The ending date and time of the  circuit.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EngineerLevelOperator" type="xsd:token" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The userid of the person operating the level.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="LevelingRodOperator" type="xsd:token" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The userid of the person operating the leveling rod.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="AirTemperature" type="IEEE754FloatValueType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The air temperature at the beginning of the circuit.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="StartingObjectName" type="xsd:token" minOccurs="1">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The name of the objective point for which the elevations are based on. The Given.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="StartingObjectGivenElev" type="IEEE754FloatValueType" minOccurs="1">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The elevation of the starting objective. The Given elevation.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ClosureError" type="IEEE754FloatValueType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The total error computed for the circuit.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ClosureErrorAdjustment" type="IEEE754FloatValueType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Definition>The error applied to each objective point to get the adjusted elevation. The error is a function of the number of setups.</Definition>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
