Versions Compared

Key

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

...

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>

Details of the import format

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

Configuration

 AifsMLTimeSeriesParser.java