<wml2:Collection xmlns:wml2="http://www.opengis.net/waterml/2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml/3.2"
  xmlns:om="http://www.opengis.net/om/2.0" xmlns:sa="http://www.opengis.net/sampling/2.0"
  xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:sf="http://www.opengis.net/sampling/2.0"
  xmlns:sams="http://www.opengis.net/samplingSpatial/2.0"
  xmlns:gco="http://www.isotc211.org/2005/gco"
  xmlns:gmd="http://www.isotc211.org/2005/gmd"
  xsi:schemaLocation="http://www.opengis.net/waterml/2.0 http://schemas.opengis.net/waterml/2.0/waterml2.xsd"
  gml:id="deterministic_forecast_TAPM4_20100506T00Z">

  <gml:description>A handcrafted example of a Hydrologic Forecast timeseries
    
    The data describes a forecast timeseries available for one forecast point 
    from a run conducted for T0=2010-05-06T00:00Z (analysisTime)
    with state selection "2010-05-03T12:00Z" (initTime)
    out 10 days cut off at 12Z, executed at "2010-05-06T05.00Z, finished at "2010-05-06T05:01Z" (resultTime)
    
    OandM phenomenonTime=period stating begin timestamp and end timestamp of forecast timeseries
    --> phenomenonTime.begin="2010-05-03T12:00Z" + phenomenonTime.end="2010-05-16T12:00Z"
    OandM resultTime=time when forecast became available (i.e. when run is finished)
    --> resultTime="2010-05-06T05:00Z"
    OandM validTime=period for which forecast is intended to be used
    
    validityTime=T+x timestamp, accounted for in the MeasurementTVP of WaterML2
    
    analysisTime=T0
    -->parameter.name="analysisTime" parameter.value="2010-05-06T00:00Z" (T0 timestamp)
    initTime=start run (timestamp of first selected state)
    -->parameter.name="initTime" parameter.value="2010-05-03T12:00Z" (timestamp first selected state)
    datumTime=last observed time
    ->parameter.name="datumTime" parameter.value="2010-05-06T00:00Z" 
  </gml:description>
  <wml2:metadata>
    <wml2:DocumentMetadata gml:id="doc_d">
      <wml2:generationDate>2011-09-21T16:46:00+10:00</wml2:generationDate>
      <wml2:version xlink:href="http://www.opengis.net/waterml/2.0"/>
    </wml2:DocumentMetadata>
  </wml2:metadata>

  <wml2:observationMember>
    <om:OM_Observation gml:id="series_one">
      <om:metadata>
        <wml2:ObservationMetadata>
          <gmd:contact>
            <gmd:CI_ResponsibleParty>
              <gmd:organisationName>
                <gco:CharacterString>New Jersey Water Science Center</gco:CharacterString>
              </gmd:organisationName>
              <gmd:role>
                <gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/CodeList/gmxCodelists.xml#CI_RoleCode"
                  codeListValue="owner"/>
              </gmd:role>
            </gmd:CI_ResponsibleParty>
          </gmd:contact>
          <gmd:dateStamp><gco:DateTime>2012-04-10T12:50:07</gco:DateTime></gmd:dateStamp>
          <gmd:identificationInfo/>
        </wml2:ObservationMetadata>
      </om:metadata>
      <om:phenomenonTime>
        <gml:TimePeriod gml:id="forecast_period">
          <gml:beginPosition>2010-05-06T12:00:00Z</gml:beginPosition>
          <gml:endPosition>2010-05-16T12:00:00Z</gml:endPosition>
        </gml:TimePeriod>
      </om:phenomenonTime>

      <om:resultTime>
        <gml:TimeInstant gml:id="forecast_available">
          <gml:timePosition>2010-05-06T05:00:00Z</gml:timePosition>
        </gml:TimeInstant>
      </om:resultTime>

      <!-- Valid time is not required if you don't know how long the forecast is available. Often will be valid until next forecast
        is availble. -->
      <om:validTime>
        <gml:TimePeriod gml:id="valid_period">
          <gml:beginPosition>2010-05-06T05:00:00Z</gml:beginPosition>
          <gml:endPosition>2010-05-07T05:00:00Z</gml:endPosition>
        </gml:TimePeriod>
      </om:validTime>

      <om:procedure xlink:href="NCRFC:MinnesotaRiver_Forecast"
        xlink:title="NCRFC:MinnesotaRiver_Forecast"
        xlink:arcrole="http://www.opengis.net/def/waterml/2.0/processType/Simulation"/>

      <om:parameter>
        <om:NamedValue>
          <om:name xlink:title="T0 (Time of analysis)" xlink:role="analysisTime"/>
          <om:value xsi:type="gml:TimePositionType">2010-05-06T00:00:00+00:00</om:value>
        </om:NamedValue>
      </om:parameter>
      <om:parameter>
        <om:NamedValue>
          <om:name xlink:title="Init time of model" xlink:role="initTime"/>
          <om:value xsi:type="gml:TimePositionType">2010-05-03T12:00:00+00:00</om:value>
        </om:NamedValue>
      </om:parameter>

      <om:observedProperty xlink:href="http://sweet.jpl.nasa.gov/2.3/phenHydro.owl#Discharge"
        xlink:title="streamflow"/>
      <om:featureOfInterest xlink:href="http://www.nws.noaa.gov/hb5id/TAPM4"
        xlink:title="Paradise 12W, MN"/>
      <om:result>
        <wml2:MeasurementTimeseries gml:id="ts_one">
          <wml2:metadata>
            <wml2:MeasurementTimeseriesMetadata>
              <wml2:temporalExtent>
                <gml:TimePeriod gml:id="fc_1">
                  <gml:beginPosition>2010-05-06T00:00:00+00:00</gml:beginPosition>
                  <gml:endPosition>2010-05-16T12:00:00+00:00</gml:endPosition>
                </gml:TimePeriod>
              </wml2:temporalExtent>
              <wml2:baseTime>2010-05-06T00:00:00+00:00</wml2:baseTime>
              <wml2:spacing>PT6H</wml2:spacing>
            </wml2:MeasurementTimeseriesMetadata>
          </wml2:metadata>
          <wml2:defaultPointMetadata>
            <wml2:DefaultTVPMeasurementMetadata>
              <wml2:qualifier xlink:href="http://www.example.com/hydro/forecasts/status/approved"
                xlink:title="Approved and issued"/>
              <wml2:uom code="m3/s"/>
              <wml2:interpolationType
                xlink:href="http://www.opengis.net/def/waterml/2.0/interpolationType/Continuous"
                xlink:title="Instantaneous"/>
            </wml2:DefaultTVPMeasurementMetadata>
          </wml2:defaultPointMetadata>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value>21.7</wml2:value>
            </wml2:MeasurementTVP>
          </wml2:point>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value>21.7</wml2:value>
            </wml2:MeasurementTVP>
          </wml2:point>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value xsi:nil="true"/>
              <wml2:metadata>
                <wml2:TVPMeasurementMetadata>
                  <wml2:nilReason xlink:href="http://www.opengis.net/def/nil/OGC/0/missing"
                    xlink:title="missing"/>
                </wml2:TVPMeasurementMetadata>
              </wml2:metadata>
            </wml2:MeasurementTVP>
          </wml2:point>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value>21.8</wml2:value>
            </wml2:MeasurementTVP>
          </wml2:point>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value>22.0</wml2:value>
            </wml2:MeasurementTVP>
          </wml2:point>
          <wml2:point>
            <wml2:MeasurementTVP>
              <wml2:value>22.6</wml2:value>
            </wml2:MeasurementTVP>
          </wml2:point>
        </wml2:MeasurementTimeseries>
      </om:result>
    </om:OM_Observation>
  </wml2:observationMember>
</wml2:Collection>
