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

  <xsd:include schemaLocation="AcousticDopplerCurrentProfiler.xsd"/>
  <xsd:include schemaLocation="AdcpTransect.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/ReferenceListCodeType.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="ReferenceListCodeType">
          <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="ReferenceListCodeType">
          <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="IEEE754FloatValueType">
          <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="ReferenceListCodeType">
          <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="AcousticDopplerCurrentProfiler"/>
        <xsd:element name="FirmwareVersionText" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The version of the embedded chip software in the Acoustic Doppler Current Profiler (ADCP).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SoftwareVersionText" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The version of the computer software used to compute the discharge and to configure the Acoustic Doppler Current Profiler (ADCP).</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SuspensionCode" type="ReferenceListCodeType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the type of suspension of the velocity meter.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ADCPDepthMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The immersion depth of the Acoustic Doppler Current Profiler (ADCP) under the water surface as measured to the center of the transducer faces.  The defaults units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DepthConsistentIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the depth of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BlankingDistanceMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The vertical distance from the Acoustic Doppler Current Profiler (ADCP) transducer face in which no velocity measurements are made.  The blanking distance is usually set by the user to eliminate the chance of contamination of the velocity measurements due to ringing. The defaults units are feet.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BlankingDistanceIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the blanking distance of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WaterModeCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The water mode is a number used with ADCP's made by RD Instruments to indicate the method used to collect water velocity profiles.  The possible values are 1, 5, 8, 11, 12, 13, and Multiple.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WaterModeIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the water mode code of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomModeCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Mode used for bottom tracking.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomModeIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the bottom mode of the ADCP constant for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DepthCellSizeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The ADCP collects data over a variable number of depth cells.  The vertical length of these cells (DepthCellSize) is specified using the WS command.  Results of velocity measurements are reported for the center of individual depth cells.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DepthCellSizeIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the depth cell size of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WaterPingsMeasure" type="xsd:positiveInteger" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The water pings specifies the number of water velocity profile measurements that are averaged together to create one profile.  This resulting profile (average of all water pings) is then transmitted to the computer for processing.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="WaterPingsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the number of water pings of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomPingsMeasure" type="xsd:positiveInteger" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The bottom pings specifies the number of bottom track velocity measurements that are averaged together to create a single measurement of boat velocity.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BottomPingsIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the number of bottom pings of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AmbiguityVelocityMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The ambiguity velocity in RDI profilers</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AmbiguityVelocityIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is the ambiguity velocity of the Acoustic Doppler Current Profiler (ADCP) consistent for all transects?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
	<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="ReferenceListCodeType">
          <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="ReferenceListCodeType">
          <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>
