<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema  
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0" 
             
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified" version="5.0">

  <xsd:include schemaLocation="MidSectionVelocityObservation.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754UncertaintyFloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/ReferenceListCodeType.xsd"/>

  <xsd:element name="MidSectionStation">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A position in the stream cross-section for a discharge meaasurement where one or more current meter measurements are performed.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="SectionDateTime" 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="HorizontalAngleCoefficient" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The coefficient to be applied to account for the angle of the streamflow to measurement section.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="VerticalAngleCoefficient" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The coefficient to be applied to account for the angle of angle of the meter suspension to the true vertical.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AirLineDistanceMeasure" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The true vertical distance of the suspension cable (airline). This value is used to calculate the vertical angle coefficient. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WetLineDistanceMeasure" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The distance of the cable underwater (wetline). The default units are in feet.</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="EffectiveDepthMeasure" type="IEEE754UncertaintyFloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The difference between the total depth and the positive value of the vertical distance 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 name="EstimatedVelocityPercent" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The percentage the velocity estimate is of the next or previous section.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="EstimatedVelocityCode" type="ReferenceListCodeType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code identifying the origin of the estimated velocity.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="Comment" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Comments about the section or the measurements in the section.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="MidSectionVelocityObservation" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
