<?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="AcousticDopplerCurrentProfilerUsed.xsd"/>
  <xsd:include schemaLocation="AdcpTransect.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>

  <xsd:element name="AdcpDischargeMeasurement">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>A type of discharge measurement where an Acoustic Doppler Current Profiler (ADCP) measures the streamflow (discharge) for the stream. The discharge measurement code of "ADCP" identifies this type of discharge measurement.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="CompassCalibrationText" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The results of compass calibrations made using the ADCP.  Compass calibrations are required when using differential GPS (DPGS) as a substitute for bottom-tracking (acoustic measurements of boat speed).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DiagnosticTestText" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The results of the ADCP self diagnostic tests.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NavigationCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the movement and velocity of the boat.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AreaComputationCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the method of computing the area.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MagneticVariationAngle" type="xsd:positiveInteger">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The angle between magnetic north and true north, in degrees.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MagneticVariationCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the method of determining the magnetic variation.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ExternalDepthSounderIndicator" type="xsd:boolean">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Flag indicating if an external depth sounder was used in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BoatMotorUsedText" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The description of the boat and moter used in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="AcousticDopplerCurrentProfilerUsed" minOccurs="0"/>
	<xsd:element name="WidthMeasure" type="IEEE754FloatValueType" minOccurs="0" >
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The width of the measurement section. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AreaMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The cross-section are of the measurement. The default units are in square feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanDepthMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The mean depth is the weighted mean water depth for the measurement.  The mean depth is weighted based on the distance between individual profiles (and depth measurements). The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MaximumDepthMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The maximum depth measured for the discharge measurement. The default units are in feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanVelocityMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average velocity of the stream during the measurement.  The default units are in feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MaximumVelocityMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The maximum velocity of the stream during the measurement.  The default units are in feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NumberEnsemblesMeasure" type="xsd:positiveInteger" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average number of ensembles per transect.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NumberShoreEnsemblesMeasure" type="xsd:positiveInteger" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The number of near shore ensembles used to get the edge estimate.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanTopDischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average of the discharge estimated for the area near the surface using the extrapolation method specified by the user for all transects in the measurement. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanMiddleDischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average of the discharge actually measured by the profiler for all transects in the measurement. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanBottomDischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average of the discharge estimated for the area near the bed using the extrapolation method specified by the user for all transects in the measurement. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanLeftDischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average of the discharge estimated for the area near the left edge of water for all transects in the measurement.  The left discharge is computed using the distance to the shore, the mean depth and water velocity near the left edge, and a coefficient for the edge shape and roughness. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeanRightDischargeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The average of the discharge estimated for the area near the right edge of water for all transects in the measurement. The right discharge is computed using the distance to the shore, the mean depth and water velocity near the left edge, and a coefficient for the edge shape and roughness. The default units are in cubic feet per second.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="LeftEdgeCoefficient" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The coefficient which is used to account for the shape and roughness of the unmeasured area near the left shore.  Typical values are .3535 for a triangular shaped section, and 0.91 for a vertical, smooth concrete wall.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="RightEdgeCoefficient" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The coefficient which is used to account for the shape and roughness of the unmeasured area near the right shore.  Typical values are .3535 for a triangular shaped section, and 0.91 for a vertical, smooth concrete wall.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DischargeCoefficient" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The standard deviation of the total discharges for all transects in the measurement divided by the mean discharge for all measurements. This parameter provides an standardized estimate of the variation of discharges in the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="FlowMeasuredPercent" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The percent of the total discharge actually measured by the profiler.  It is computed by taking the MeanMiddleDischarge divided by the MeanTotalDischarge and expressed in percent.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="TopEstimateMethodCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the method of estimation of the top?.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="TopEstimateCoefficient" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The Value of coefficient used in power function for top estimate.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomEstimateMethodCode" type="xsd:NMTOKEN">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the method of estimation of the bottom?.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomEstimateCoefficient" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The Value of coefficient used in power function for bottom estimate.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WOCommandSetting" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The setting of the WO command for water mode 12.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="AdcpTransect" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
