...
- parameter id: From the "element" element the type attribute is used. Correct, in this case, we are going to use ‘rain_hour’
- unit: From the "element" element the units attribute is used.
...
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> <identifier>WARNINGID</identifier> ...... </amoc> <warning><observations> <warning-info> ...... <text type="warning_sequence">1</text> <text type="warning_title_text">warning title</text> </warning-info> <area aac="STATIONID" description="Station name" type="river-site" parent-aac="....."> <forecast-period start-time-local=".." end-time-local=".." start-time-utc="2014-08-21T01:41:31Z" end-time-utc="..<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"> <element<period typeindex="prediction0" time-localutc="20142015-0801-22T1710T00:5930:00+1000:00" sequence="1">Fall below</element> <element type="value" units="m" time-local="20142015-0801-22T1710T11:5930:00+1011:00" sequencewind-src="1">2.60</element>metar_10"> <element<level typeindex="prediction0" time-localtype="2014-08-22T11:40:00+10:00" sequence="2">Remain around</element>surface"> <element type="value" units="mmm" time-local="2014-08-22T11:40:00+10:00" sequence="2">2.50<type="rain_hour">0.0</element> .....</level> </forecast-period> </area>station> <station> ... </warning>station> <observations/><observations> </product> |
Configuration
...
An example configuration of the import
...
From the elements within <amoc>, only the <identifier> and <issue-time-utc> elements are used by the parser.
Within <warning><warning-info> the parser only looks for <text> elements with attribute type="warning_sequence" and attribute type="warning_title_text"
Only <area> elements inside the <warning> element with <forecast_text> children, will result in events. The aac attribute will be used for location for all forecast_text children.
Inside the <forecast-period> element the text elements with the same sequence numbers are correlated and used to construct an event.
Java source code
...
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>
...
|