You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

The WMO BUFR ASCII import function (<importType>WmoBufrAscii</importType>) imports scalar time series from a WMO BUFR format provided by KNMI.

See http://www.knmi.nl/datacentrum/catalogus/catalogus/content/nl-ecm-eps-waqua-skewsurge-nsea-info.htm and http://www.knmi.nl/datacentrum/catalogus/catalogus/content/nl-ecm-eps-waqua-skewsurge-nsea.htm.

Configuring the Import

To make the importer known to FEWS, the import module has to be declared in the moduleInstanceDescriptors.xml in the RegionConfigFiles directory of the FEWS configuration:

<?xml version="1.0" encoding="UTF-8"?>
<moduleInstanceDescriptors 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/moduleInstanceDescriptors.xsd" version="1.0">
...
	<moduleInstanceDescriptor id="WmoBufrAscii">
		<moduleId>TimeSeriesImportRun</moduleId>
	</moduleInstanceDescriptor>
...
</moduleInstanceDescriptors>

An example of the WmoBufrAscii import (filename: ImportWmoBufrAscii.xml) configuration will be given here. The importType is named WmoBufrAscii which should be configured in the general section of the import.

<?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>WmoBufrAscii</importType>
			<folder>$IMPORT_FOLDER$/anna</folder>
			<idMapId>wmoBufrAsciiMapId</idMapId>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>ImportWmoBufrAscii</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>H.observed</parameterId>
			<locationId>06514</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>

</timeSeriesImportRun>

The IdMapping configuration wmoBufferAsciiMapId.xml is needed to maps the internal FEWS Id's to the WmoBufferAscii Id's. An example IdMapping file importer is shown below.:

<?xml version="1.0" encoding="UTF-8"?>
<idMap version="1.1" 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/idMap.xsd">
	....
	<parameter internal="H.observed" external="054003"/>
	....
</idMap>
  • No labels