Overview
The AifsMLObservations import function (<importType>AifsMLObservations</importType>) imports time series. The AifsML format is a very specific XML format developed at the Bureau of Meteorology in Australia. Files with this format are produced in the home made Content Reviewer (WET) software that is used to generate official flow forecasts. This import is targeted to observations. A related import (AifsML) can be used to import forecasts from the warnings element.
The time series parser looks for:
- location id: From the station element the bom-id attribute is used.
- observation time: From the period element the time-utc attribute is used if no other time has been specified for an element.
- If for an element a start-time-utc attribute is specified, that value will be used for the observation time.
- If for an element a end-time-utc attribute is specified, that value will be used for the observation time (for example rainfall).
- parameter id: From the "element" element the type attribute is used.
- unit: From the "element" element the units attribute is used.
There is an XML schema available on the Bureau web site: http://www.bom.gov.au/schema/v1.5/product.xsd
Example
Example files can be obtained from the Bureau of Meteorology or generated from the XML schema. An extract of a Aifs
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?>
<product version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.bom.gov.au/weather/schema/v1.4/product.xsd">
<amoc>
<source>
<sender>Australian Government Bureau of Meteorology</sender>
<region>Victoria</region>
<office>VICFWC</office>
<copyright>http://www.bom.gov.au/other/copyright.shtml</copyright>
<disclaimer>http://www.bom.gov.au/other/disclaimer.shtml</disclaimer>
</source>
......
</amoc>
<observations>
<station wmo-id="WMO-ID" bom-id="LOCATION_ID" tz="Australia/Melbourne" stn-name="STATION NAME" stn-height="10.60" type="AWS" lat="-38.0287" lon="144.4783" forecast-district-id="VIC_PW007" description="DESCRIPTION">
<period index="0" time-utc="2015-01-10T00:30:00+00:00" time-local="2015-01-10T11:30:00+11:00" wind-src="metar_10">
<level index="0" type="surface">
<element units="mm" type="rain_hour">0.0</element>
</level>
</period>
</station>
<station>
...
</station>
<observations>
</product> |
Configuration
An example configuration of the import is shown next:
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
<import>
<general>
<importType>AifsMLObservations</importType>
<folder>$IMPORT_FOLDER$/aifobservations</folder>
<idMapId>IdImportAifsMLObservations</idMapId>
</general>
<timeSeriesSet>
<moduleInstanceId>ImportAifsMLObservations</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.obs</parameterId>
<locationId>Amsterdam</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant" />
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
...
|