Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This CanadaMeteo data import is used for targeted access of Observation Summary Data Observations summary data in XML format.

Present parser allows to download and import meteorological observations from Environment Canada's telemetry network. The files that are downloaded and imported can be found at at http://dd.meteo.gc.ca/observations/xml/ . These files adhere to a schema: xmlns="http://dms.ec.gc.ca/schema/point-observation/2.1"

An example of such an xml data file:

 

The parser is included in Delft-FEWS versions 2017.02 and higher.


This documentation contains:

1) Data Provider Documentation

2) Sample Configuration


This data import is available since Delft-FEWS 2018.02 and a patch more recent then January, 2020.

Please comment if anything further is needed or requires updating.

1) Data Provider Documentation

This service is hosted by the Meteorological Service of Canada:

For overview documentation https://eccc-msc.github.io/open-data/msc-data/obs_station/readme_obs_insitu_xmldatamart_en/

The license of the data provider (Environment and Climate Change Canada) can be found here  https://dd.weather.gc.ca/doc/LICENCE_GENERAL.txt

2) Sample Configuration

Example of the Delft-FEWS import module

Code Block
languagexml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Computer Services (WL | Delft Hydraulics) -->
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews
Code Block
languagexml
linenumberstrue
collapsetrue
om:ObservationCollection xmlns:om="http://www.opengis.net/om/1.0" xmlns="http://dms.ec.gc.ca/schema/point-observation/2.1" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <om:member>
      <om:Observation>
         <om:metadata>
            <set>
         xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
   <import>
      <general>
         <importType>CanadaMeteo</importType>
         <author build="build.4083" name="MSC-DMS-PG-WXO-Summary" version="3.1"/><serverUrl>http://dd.meteo.gc.ca/observations/xml</serverUrl>
         <user>dummy_username</user>
         <dataset name="mscobservation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/"/>
                  <phase name="product-wxo_xml-1.0/"/<password>dummy_password</password>
		 <!-- Time period has to be configured for the importer to work -->
         <relativeViewPeriod unit="hour" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
    <id xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>  </general>
      <properties>
         <!--Optional configuration field. Value <parent xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
          is a comma separated string of the region folder to be included.-->
     </general>
    <!--If it is not configured, data will be fetched from all <identification-elements>
folders for the specified time. Case sensitive.-->
         <!--Possible choices: AB, <element name="province" uom="unitless" value="SK"/>
        BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT-->
         <string <element namekey="creation_date_utcRegionDirectory" uomvalue="unitless" value="2018-10-12T23:50:00.000ZAB, BC"/>
         <!--Optional configuration field. Value is a comma separated string of <element name="observation_date_utc" uom="unitless" value="2018-10-12T23:45:00.000Z"/the time folders to be included.-->
          <!--If it is not configured, data will  <element name="license" uom="unitless" value="http://dd.weatheroffice.ec.gc.ca/doc/LICENCE_GENERAL.txt"/be fetched from all folders for the specified time.-->
         <!--Possible choices: "hourly", "today", "yesterday"-->
     <element name="language" uom="unitless    <string key="TimeDirectory" value="FRhourly, today"/>
      </properties>
      <timeSeriesSet>
     </identification-elements>
    <moduleInstanceId>CanadaMeteo</moduleInstanceId>
         <<valueType>scalar</set>valueType>
         </om:metadata><parameterId>mean_sea_level</parameterId>
         <om:samplingTime><locationId>3025481</locationId>
         <timeSeriesType>external historical</timeSeriesType>
  <gml:TimeInstant>
       <timeStep unit="nonequidistant"/>
          <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
      <readWriteMode>add originals</readWriteMode>
      </gml:TimeInstant>timeSeriesSet>
         </import>
</timeSeriesImportRun> 


Configuration Notes:

  • The first set of data (member) contains information that is not specific to one location,  it is not imported.
  • Data concerning record temperatures, record rain, record snow, since when temperature and precipitation data is available, present weather and tendency characteristic are ignored. (Thus fields that do not contain data measured at sampling time).
  • Measurements with no "value" are ignored.
  • Wind direction is calculated from code (for example, NW for NorthWest) to degrees. For location ID climate station number is used.
  • If, in the import module, a RegionDirectory is configured (for the purpose of importing data for, say, a single Province only), special attention should be paid to make sure that the locationSet that data is imported to, includes locations that are available in the directory specified. 
  • If data is not available for the chosen times, en empty time series set is returned.
  • It is practical to configure either a short time period, or other restrictions to prevent running out of local memory.

Locations and id mapping

Two files used for Locations and IdMapping are linked here.

  • Link: A list of Environment Canada locations from which data can be imported. 
    • Note that the 'external location IDs' are in the column "# MSC"; these correspond to the XML data file's climate_station_number.
    • This means you will either need to set these as your Delft-FEWS locationID
    • Alternatively, you need to import the MSC column as an attribute and use an id-mapping function to reference that, for example <locationIdFunction internalLocationSet="EC_stations" externalLocationFunction="@climate_station_number@"/> where, in the locationSets, climate_station_number is an attributeID defined from the associated column in the .csv file that stores the locations: <attribute id="climate_station_number"><text>%# MSC%</text></attribute>.
  • Link: IdMappingFile

Note that both files were valid at the time of upload to the WIKI. Any changes made by Environment Canada, to either the locations or the naming of parameters, will not be automatically reflected in these attachments. 


These files adhere to a schema: xmlns="http://dms.ec.gc.ca/schema/point-observation/2.1An example of such an xml data file:

Code Block
languagexml
linenumberstrue
collapsetrue
om:ObservationCollection xmlns:om="http://www.opengis.net/om/1.0" xmlns="http://dms.ec.gc.ca/schema/point-observation/2.1" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <om:member>
      <om:Observation>
om:samplingTime>
         <om:resultTime>
            <gml:TimeInstant>
               <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
            </gml:TimeInstant>
         </om:resultTime>
         <om:procedure xlink:href="msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
         <om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/>
         <om:featureOfInterest>
            <gml:FeatureCollection>
               <gml:location>
                  <gml:Point>
                     <gml:pos/>
                  </gml:Point>
               </gml:location>
            </gml:FeatureCollection>
         </om:featureOfInterest>
         <om:result>
            <elements>
               <element name="hot_spot_location_canada" uom="unitless" value="Rolling Hills">
<om:metadata>
            <set>
            <qualifier name="hot_spot_temperature_canada" uom="Celsius" value="20.0"/> <general>
                  <qualifier<author namebuild="provincebuild.4083" uom="AB" value="unitlessname="MSC-DMS-PG-WXO-Summary" version="3.1"/>
               </element>
   <dataset name="mscobservation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/"/>
                <element  <phase name="cold_spot_location_canada" uom="unitless" value="Eureka"product-wxo_xml-1.0/"/>
                  <qualifier<id name="cold_spot_temperature_canada" uom="Celsius" value="-21.8xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
                  <qualifier<parent name="province" uom="NU" value="unitless"/>
 xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
               </element>
general>
               <identification-elements>
                  <element name="hot_spot_location_province" uom="unitless" value="Maple CreekSK"/>
                  <qualifier<element name="hotcreation_spotdate_temperature_provinceutc" uom="Celsiusunitless" value="18.42018-10-12T23:50:00.000Z"/>
               </element>
               <element name="coldobservation_spotdate_location_provinceutc" uom="unitless" value="Broadview"2018-10-12T23:45:00.000Z"/>
                  <qualifier<element name="cold_spot_temperature_provincelicense" uom="Celsiusunitless" value="-8.9"/>http://dd.weatheroffice.ec.gc.ca/doc/LICENCE_GENERAL.txt"/>
               </element>
   <element name="language" uom="unitless" value="FR"/>
      </elements>
         </om:result>identification-elements>
      </om:Observation>
      </om:member>set>
   <om:member>
      <om</om:Observation>metadata>
         <om:metadata>samplingTime>
            <set><gml:TimeInstant>
               <general>
<gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
            </gml:TimeInstant>
      <author build="build.4083" name="MSC-DMS-PG-WXO-Summary" version="3.1"/> </om:samplingTime>
         <om:resultTime>
            <dataset name="mscobservation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/"/>
<gml:TimeInstant>
               <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
           <phase name="product-wxo_xml-1.0/"/> </gml:TimeInstant>
         </om:resultTime>
         <id<om:procedure xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
                  <parent xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr<om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/>
         <om:featureOfInterest>
         </general>   <gml:FeatureCollection>
               <identification-elements><gml:location>
                  <gml:Point>
  <element name="station_name" uom="unitless" value="Aéroport d'Assiniboia"/>
               <gml:pos/>
   <element name="latitude" uom="degree" value="49.729192"/>
            </gml:Point>
      <element name="longitude" uom="degree" value="-105.946114"/>
      </gml:location>
            <element name="transport_canada_id" uom="unitless" value="WJI"/></gml:FeatureCollection>
         </om:featureOfInterest>
         <om:result>
            <elements>
               <element name="observationhot_spot_datelocation_utccanada" uom="unitless" value="2018-10-12T23:45:00.000Z"/Rolling Hills">
                  <element<qualifier name="observationhot_datespot_localtemperature_timecanada" uom="unitlessCelsius" value="2018-10-12T17:45:00.000 CST20.0"/>
                  <element<qualifier name="climate_station_numberprovince" uom="unitlessAB" value="4020286unitless"/>
               </element>
               <element name="wmocold_spot_stationlocation_numbercanada" uom="unitless" value="71487Eureka"/>
               </identification-elements>
   <qualifier name="cold_spot_temperature_canada"        </set>uom="Celsius" value="-21.8"/>
         </om:metadata>
         <om:samplingTime>
   <qualifier name="province" uom="NU" value="unitless"/>
         <gml:TimeInstant>
      </element>
         <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
            </gml:TimeInstant><element name="hot_spot_location_province" uom="unitless" value="Maple Creek">
         </om:samplingTime>
         <om:resultTime><qualifier name="hot_spot_temperature_province" uom="Celsius" value="18.4"/>
            <gml:TimeInstant>
   </element>
                <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition><element name="cold_spot_location_province" uom="unitless" value="Broadview">
            </gml:TimeInstant>
      <qualifier name="cold_spot_temperature_province" uom="Celsius" value="-8.9"/>
               </om:resultTime>element>
         <om:procedure xlink:href="msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>   </elements>
         <om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/></om:result>
         <om:featureOfInterest></om:Observation>
   </om:member>
   <om:member>
      <gml<om:FeatureCollection>Observation>
         <om:metadata>
       <gml:location>
     <set>
             <gml:Point>
  <general>
                   <gml:pos>49.729192 -105.946114</gml:pos>
<author build="build.4083" name="MSC-DMS-PG-WXO-Summary" version="3.1"/>
                  <dataset </gml:Point>name="mscobservation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/"/>
               </gml:location>
            </gml:FeatureCollection>
         </om:featureOfInterest><phase name="product-wxo_xml-1.0/"/>
         <om:result>
            <elements>
               <element name="air_temperature_today_high" uom="Celsius" value="11.9<id xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
               <element name="air_temperature_today_low" uom="Celsius" value="-5.5   <parent xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_today_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
               <element name="wind_gust_speed" uom="km/h" value=""/></general>
               <element<identification-elements>
                  <element name="windstation_directionname" uom="codeunitless" value="WSWAéroport d'Assiniboia"/>
                  <element name="record_high_temperaturelatitude" uom="Celsiusdegree" value="1749.4729192"/>
                  <qualifier<element name="record_high_temperature_yearlongitude" uom="unitlessdegree" value="2012-105.946114"/>
               </element>
               <element name="recordtransport_lowcanada_temperatureid" uom="Celsiusunitless" value="-9.2WJI"/>
                  <qualifier<element name="recordobservation_lowdate_temperature_yearutc" uom="unitless" value="20062018-10-12T23:45:00.000Z"/>
               </element>
               <element name="recordobservation_date_rainlocal_amounttime" uom="mmunitless" value="6.8"2018-10-12T17:45:00.000 CST"/>
                  <qualifier<element name="recordclimate_rainstation_yearnumber" uom="unitless" value="19974020286"/>
               </element>
               <element name="recordwmo_snowstation_amountnumber" uom="cmunitless" value="0.071487"/>
               </identification-elements>
   <qualifier name="record_snow_year" uom="unitless" value="1996"/>
      </set>
         </element>
om:metadata>
         <om:samplingTime>
          <element name="temperature_data_since_year" uom="unitless" value="1993"/> <gml:TimeInstant>
               <element name="precipitation_data_since_year" uom="unitless" value="1993"/><gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
            </elements>gml:TimeInstant>
         </om:result>samplingTime>
         </om<om:Observation>resultTime>
   </om:member>
<om:member>
    <om:Observation>
      <om<gml:metadata>TimeInstant>
         <set>
      <gml:timePosition>2018-10-12T23:00:00.000Z</gml:timePosition>
      <general>
      </gml:TimeInstant>
         <author build="build.4083" name="MSC-DMS-PG-WXO-Summary" version="3.1"/></om:resultTime>
               <dataset name="mscobservation<om:procedure xlink:href="msc/observation/atmospheric/surface_weather/wxo_dd_hourtoday_summary-1.0-ascii/product-wxo_xml-1.0/20181012234500000/sk/intermediate/fr"/>
               <phase name="product-wxo_xml-1.0/<om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/>
         <om:featureOfInterest>
           <id xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/><gml:FeatureCollection>
               <gml:location>
               <parent   xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/>
<gml:Point>
                      </general><gml:pos>49.729192 -105.946114</gml:pos>
            <identification-elements>
      </gml:Point>
          <element name="station_name" uom="unitless" value="Bedford Range"/>
    </gml:location>
            </gml:FeatureCollection>
      <element name="latitude" uom="degree" value="44.745858"/> </om:featureOfInterest>
         <om:result>
      <element name="longitude" uom="degree" value="-63.661689"/>      <elements>
               <element name="transportair_canadatemperature_idtoday_high" uom="unitlessCelsius" value="ABR11.9"/>
               <element name="observationair_temperature_datetoday_utclow" uom="unitlessCelsius" value="2018-09-21T01:30:00.000Z-5.5"/>
               <element name="observationwind_dategust_local_timespeed" uom="unitlesskm/h" value="2018-09-20T22:30:00.000 ADT"/>
               <element name="climatewind_station_numberdirection" uom="unitlesscode" value="8200574WSW"/>
               <element name="wmorecord_stationhigh_numbertemperature" uom="unitlessCelsius" value="7132517.4"/>
            </identification-elements>
      <qualifier name="record_high_temperature_year"  </set>uom="unitless" value="2012"/>
      </om:metadata>
      <om:samplingTime>
   </element>
      <gml:TimeInstant>
         <element name="record_low_temperature"  <gml:timePosition>2018-09-21T01:00:00.000Z</gml:timePosition>uom="Celsius" value="-9.2">
         </gml:TimeInstant>
        </om:samplingTime>
 <qualifier name="record_low_temperature_year"    <om:resultTime>uom="unitless" value="2006"/>
         <gml:TimeInstant>
            <gml:timePosition>2018-09-21T01:00:00.000Z</gml:timePosition>
 </element>
        </gml:TimeInstant>
      </om:resultTime>
 <element name="record_rain_amount"    <om:procedure xlink:href="msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/>
uom="mm" value="6.8">
             <om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/>
     <qualifier name="record_rain_year"  <om:featureOfInterest>uom="unitless" value="1997"/>
         <gml:FeatureCollection>
      </element>
      <gml:location>
         <element name="record_snow_amount"     <gml:Point>
uom="cm" value="0.0">
                   <gml:pos>44.745858 -63.661689</gml:pos><qualifier name="record_snow_year" uom="unitless" value="1996"/>
               </gml:Point>element>
            </gml:location>
   <element name="temperature_data_since_year"     </gml:FeatureCollection>uom="unitless" value="1993"/>
      </om:featureOfInterest>
      <om:result>
         <elements>
            <element name="present_weatherprecipitation_data_since_year" uom="codeunitless" value="Partly Cloudy1993"/>
            <element name="mean_sea_level" uom="kPa" value="102.6"/></elements>
         </om:result>
   <element name="tendency_amount" uom="kPa" value="0.20"/> </om:Observation>
   </om:member>
<om:member>
   <om:Observation>
      <om:metadata>
   <element name="tendency_characteristic" uom="code" value="rising"/>
   <set>
         <element name="horizontal_visibility" uom="km" value="24.1"/>
 <general>
              <element name="air_temperature" uom="Celsius" value="10.7 <author build="build.4083" name="MSC-DMS-PG-WXO-Summary" version="3.1"/>
            <element   <dataset name="dew_point" uom="Celsius" value="8.7mscobservation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/"/>
              <element <phase name="relative_humidity" uom="percent" value="87"product-wxo_xml-1.0/"/>
            <element name="wind_speed" uom="km/h" value="6   <id xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/>
             <element name="wind_direction" uom="code" value="NW"  <parent xlink:href="/data/msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/>
            <element name="wind_gust_speed" uom="km/h" value="15"/>
</general>
            <identification-elements>
               <element name="totalstation_cloud_covername" uom="codeunitless" value="5Bedford Range"/>
               <element name="wind_chilllatitude" uom="unitlessdegree" value="44.745858"/>
               <element name="humidexlongitude" uom="unitlessdegree" value="-63.661689"/>
         </elements>
      </om:result>
   </om:Observation>
</om:member>
</om:ObservationCollection> 

Some notes on the data that is taken from the xml files:

  • The first set of data (member) contains information that is not specific to one location,  it is not imported.
  • Data concerning record temperatures, record rain, record snow, since when temperature and precipitation data is available, present weather and tendency characteristic are ignored. (Thus fields that do not contain data measured at sampling time).
  • Measurements with no "value" are ignored.
  • Wind direction is calculated from code to degrees. For location ID climate station number is used.

Example of the Delft-FEWS import module

Code Block
languagexml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Computer Services (WL | Delft Hydraulics) -->
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<element name="transport_canada_id" uom="unitless" value="ABR"/>
               <element name="observation_date_utc" uom="unitless" value="2018-09-21T01:30:00.000Z"/>
               <element name="observation_date_local_time" uom="unitless" value="2018-09-20T22:30:00.000 ADT"/>
               <element name="climate_station_number" uom="unitless" value="8200574"/>
               <element name="wmo_station_number" uom="unitless" value="71325"/>
            </identification-elements>
    xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
   <import> </set>
      </om:metadata>
      <general><om:samplingTime>
         <importType>CanadaMeteo</importType><gml:TimeInstant>
         <serverUrl>http://dd.meteo.gc.ca/observations/xml</serverUrl>   <gml:timePosition>2018-09-21T01:00:00.000Z</gml:timePosition>
         <user>user<</user>gml:TimeInstant>
         <password>password</password>
		 <!-- Time period has to be configured for the importer to work --></om:samplingTime>
      <om:resultTime>
         <gml:TimeInstant>
         <relativeViewPeriod  unit="hour" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
 <gml:timePosition>2018-09-21T01:00:00.000Z</gml:timePosition>
         </general>gml:TimeInstant>
      <properties></om:resultTime>
         <!--Optional configuration field. Value is a comma separated string of the region folder to be included.--<om:procedure xlink:href="msc/observation/atmospheric/surface_weather/wxo_dd_hour_summary-1.0-ascii/product-wxo_xml-1.0/20180921014500000/ns/intermediate/en"/>
         <!--If it is not configured, data will be fetched from all folders for the specified time. Case sensitive.-->
<om:observedProperty gml:remoteSchema="/schema/point-observation/2.0.xsd"/>
      <om:featureOfInterest>
         <gml:FeatureCollection>
           <!--Possible choices<gml:location>
 AB,  BC, MB, NB, NL, NS, NT, NU, ON, PE,  QC, SK, YT-->
   <gml:Point>
       <string key="RegionDirectory" value="AB, BC"/>
        <gml:pos>44.745858 <!--Optional configuration field. Value is a comma separated string of the time folders to be included.-->-63.661689</gml:pos>
               </gml:Point>
         <!--If it is not configured, data will be fetched from all folders for the specified time.--> </gml:location>
         </gml:FeatureCollection>
         <!--Possible choices: "hourly", "today", "yesterday"-->
   </om:featureOfInterest>
      <om:result>
      <string key="TimeDirectory" value="hourly, today"/> <elements>
      </properties>
      <timeSeriesSet>
         <moduleInstanceId>CanadaMeteo</moduleInstanceId><element name="present_weather" uom="code" value="Partly Cloudy"/>
         <valueType>scalar</valueType>
         <parameterId>mean<element name="mean_sea_level</parameterId>
         <locationId>3025481</locationId>level" uom="kPa" value="102.6"/>
         <timeSeriesType>external historical</timeSeriesType>
  <element name="tendency_amount" uom="kPa" value="0.20"/>
             <timeStep unit="nonequidistant<element name="tendency_characteristic" uom="code" value="rising"/>
           <readWriteMode>add originals</readWriteMode>
 <element name="horizontal_visibility" uom="km" value="24.1"/>
       </timeSeriesSet>
   </import>
</timeSeriesImportRun> 

Some notes:

  • If, in the import module, a RegionDirectory is configured (for the purpose of importing data for, say, a single Province only), special attention should be paid to make sure that the locationSet that data is imported to, includes locations that are available in the directory specified. 
  • If data is not available for the chosen times, en empty time series set is returned.
  • It is practical to configure either a short time period, or other restrictions to prevent running out of local memory.

...

  <element name="air_temperature" uom="Celsius" value="10.7"/>
            <element name="dew_point" uom="Celsius" value="8.7"/>
            <element name="relative_humidity" uom="percent" value="87"/>
            <element name="wind_speed" uom="km/h" value="6"/>
            <element name="wind_direction" uom="code" value="NW"/>
            <element name="wind_gust_speed" uom="km/h" value="15"/>
            <element name="total_cloud_cover" uom="code" value="5"/>
            <element name="wind_chill" uom="unitless" value=""/>
            <element name="humidex" uom="unitless" value=""/>
         </elements>
      </om:result>
   </om:Observation>
</om:member>
</om:ObservationCollection>