<?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/IEEE754FloatValue.xsd"/>
	<xsd:include schemaLocation="../shared/DataAgingCode.xsd"/>
	<xsd:include schemaLocation="../shared/RecordHistory.xsd"/>

	<xsd:attribute name="daysNumber" type="xsd:integer">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The number of days of daily values used in the calculation.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:attribute>

	<xsd:attribute name="monthIdentifier">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Specifies the month of the statistics, starting at 1 for January.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleType>
			<xsd:restriction base="xsd:NMTOKEN">
				<xsd:enumeration value="1"/>
				<xsd:enumeration value="2"/>
				<xsd:enumeration value="3"/>
				<xsd:enumeration value="4"/>
				<xsd:enumeration value="5"/>
				<xsd:enumeration value="6"/>
				<xsd:enumeration value="7"/>
				<xsd:enumeration value="8"/>
				<xsd:enumeration value="9"/>
				<xsd:enumeration value="10"/>
				<xsd:enumeration value="11"/>
				<xsd:enumeration value="12"/>
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:attribute>

	<xsd:element name="AnnualMaximum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum of all of the daily values for the water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:element name="AnnualMean" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean of all of the daily values for the water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:element name="AnnualMinimum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum of all of the daily values for the water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AnnualStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean, maximum, minimum, and total of the daily mean values for specified water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="AnnualMean" minOccurs="0"/>
				<xsd:element ref="AnnualMaximum" minOccurs="0"/>
				<xsd:element ref="AnnualMinimum" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute ref="daysNumber"/>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="MaximumInstantaneousFlow">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum instantaneous discharge occurring for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The date and time that the value occured.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MaximumInstantaneousStage">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>the maximum instantaneous stage occurring for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The date and time that the value occured.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MinimumInstantaneousFlow">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum instantaneous discharge occurring for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The date and time that the value occured.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MonthlyMaximum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum of the daily values for the specified month.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MonthlyMean" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean of the daily values for the specified month and year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MonthlyMinimum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum of the daily values for the specified month.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MonthlyStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The monthly statistics of mean, maximum, and minimum, of the daily mean values for specified month and water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="MonthlyMean" minOccurs="0"/>
				<xsd:element ref="MonthlyMaximum" minOccurs="0"/>
				<xsd:element ref="MonthlyMinimum" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute ref="monthIdentifier" use="required"/>
			<xsd:attribute ref="daysNumber" use="required"/>
		</xsd:complexType>
	</xsd:element>


	<xsd:element name="MonthlySummaryMaximum">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum monthy mean of the daily values for the specified month for the period of record.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="WaterYear" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The water year of first occurance of the maximum monthy value.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MonthlySummaryMean">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean of the daily values for the specified month for the period of record.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">

				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MonthlySummaryMinimum">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum monthy mean of the daily values for the specified month for the period of record.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="WaterYear" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The water year of first occurance of the minimum monthy value.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MonthlySummaryStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The statistics of  mean, maximum, and minimum of the monthly mean values of the mean daily values for the period of record.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="MonthlySummaryMean" minOccurs="0"/>
				<xsd:element ref="MonthlySummaryMaximum" minOccurs="0"/>
				<xsd:element ref="MonthlySummaryMinimum" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute ref="monthIdentifier" use="required"/>
			<xsd:attribute ref="daysNumber" use="required"/>
		</xsd:complexType>
	</xsd:element>





	<xsd:element name="AnnualSummaryMaximum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum of the daily values for the specified water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AnnualSummaryMean" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean of the daily values for the specified water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AnnualSummaryMinimum" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum of the daily values for the specified water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="AnnualSummaryStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The mean, maximum, and minimum of the annual means (from daily mean values) calculated for the period of record up to the specified water year.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="AnnualSummaryMean" minOccurs="0"/>
				<xsd:element ref="AnnualSummaryMaximum" minOccurs="0"/>
				<xsd:element ref="AnnualSummaryMinimum" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute ref="daysNumber"/>
			<xsd:attribute name="waterYear" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>
						<Definition>The water year to compute the summary statistics from the beginning of the period of record.</Definition>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="PeriodMean" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The arithmetic mean of the individual daily mean discharges for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="PeriodTotal" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The sum of the daily mean values of discharge for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="PeriodRunoff" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Defines the depth, in the units specified, to which the drainage area would be covered if all of the runoff were uniformly distributed.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MaximumDailyFlow">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The maximum instantaneous discharge that occured for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The date and time that the maximum daily flow occured.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
					<xsd:attribute name="timeDatum" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The time datum of the date and time of maximum daily flow.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="MinimumDailyFlow">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The minimum instantaneous discharge that occured for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The date and time that the minimum daily flow occured.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
					<xsd:attribute name="timeDatum" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The time datum of the date and time of minimum daily flow.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="Minimum7DayFlow">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The lowest mean discharge for 7 consecutive days during the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base="IEEE754FloatValueType">
					<xsd:attribute name="dateTime" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The beginning date of the 7-day period for the value.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
					<xsd:attribute name="timeDatum" type="xsd:string" use="required">
						<xsd:annotation>
							<xsd:documentation>
								<Definition>The time datum of the beginning date and time.</Definition>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="DailyFlow10Percentile" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The discharge that is exceeded by 10 percent of the flow for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DailyFlow50Percentile" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The discharge that is exceeded by 50 percent of the flow for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DailyFlow90Percentile" type="IEEE754FloatValueType">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>The discharge that is exceeded by 90 percent of the flow for the period.</Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DischargePeriodStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Defines the flow statistics for a defined period of either a water year, calendar year, or period of record.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="PeriodMean" minOccurs="0"/>
				<xsd:element ref="PeriodTotal" minOccurs="0"/>
				<xsd:element ref="PeriodRunoff" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="MaximumDailyFlow" minOccurs="0"/>
				<xsd:element ref="MinimumDailyFlow" minOccurs="0"/>
				<xsd:element ref="Minimum7DayFlow" minOccurs="0"/>
				<xsd:element ref="DailyFlow10Percentile" minOccurs="0"/>
				<xsd:element ref="DailyFlow50Percentile" minOccurs="0"/>
				<xsd:element ref="DailyFlow90Percentile" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute name="periodType" default="WaterYear">
				<xsd:annotation>
					<xsd:documentation>
						<Definition>Defines the type of period where;"WaterYear" = the period from October 1st to September 30th, "CalendarYear" = the period from January 1st to December 31st, and "PeriodRecord" = the period of record.</Definition>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:NMTOKEN">
						<xsd:enumeration value="WaterYear"/>
						<xsd:enumeration value="CalendarYear"/>
						<xsd:enumeration value="Period"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
			<xsd:attribute name="StartYear" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>
						<Definition>The starting year for the discharge statistics period.</Definition>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute name="EndYear" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>
						<Definition>The ending year for the discharge statistics period.</Definition>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute ref="daysNumber"/>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="DailyValueStatistics">
		<xsd:annotation>
			<xsd:documentation>
				<Definition>Statistics of the daily values data.</Definition>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="MonthlyStatistics" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="AnnualStatistics" minOccurs="0"/>
				<xsd:element ref="MonthlySummaryStatistics" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="AnnualSummaryStatistics" minOccurs="0"/>
				<xsd:element ref="DischargePeriodStatistics" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="DataAgingCode"/>
				<xsd:element name="History" type="RecordHistoryType"/>
			</xsd:sequence>
			<xsd:attribute name="WaterYear" type="xsd:string" use="required">
				<xsd:annotation>
					<xsd:documentation>
						<Definition>Identifies the water year of the daily value summary statistics.</Definition>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
