<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema  
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/4.8" 
             
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified" version="4.8">

  <xsd:include schemaLocation="AdvVelocityObservation.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754UncertaintyFloatValue.xsd"/>

  <xsd:element name="AdvStation">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A position in the stream cross-section for a discharge meaasurement where one or more accostic doopler velocity meter measurements are performed.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="DateTime" type="DateTimeWithDatum" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The date and time that the vertical section was measured.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DistanceFromInitialPointMeasure" type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The distance from the discharge measurement initial point. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WidthMeasure" type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The width of the section, as measured, generally from half way to the previous section and half way to the next section.  The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DepthMeasure" type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The depth of water at the discharge measurement sub-section. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AreaMeasure" type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The cross-section area of the discharge measurement sub-section. The default units are in square feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<xsd:element name="DischargeMeasure" type="IEEE754UncertaintyFloatValueType">
    	  <xsd:annotation>
            <xsd:documentation>
              <Definition>The stream discharge of the discharge measurement sub-section. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="VelocityCorrectionMeasure" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The correction factor to be applied to the measured velocityl.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="IceDistanceMeasure" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The distance from the surface of the water to the bottom of the ice. A positive value indicates the water level is above the bottom of the ice. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="VelocityMeasure" type="IEEE754UncertaintyFloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average measured velocity through the vertical section.The default units are in feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="AdvVelocityObservation" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
