<?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="FlumeHeadMeasurement.xsd"/>

  <xsd:element name="FlumeDischargeMeasurement">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A type of discharge measurement where the streamflow (discharge) is measured via the use of a calibrated portable flume or weir. The head (water level) of the water flowing through the flume or weir is measured and the discharge is computed from this head value. Typically up to ten head readings are done and averaged to get the streamflow value. The discharge measurement code of "FLUM" identifies this type of discharge measurement.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="MeanHeadMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average head in the flume, as calculated from the individual measurements of head.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="FlumeHeadMeasurement" minOccurs="1" maxOccurs="10">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The individual measurements of the head of water moving through the flume or weir.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
