Versions Compared

Key

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

...

Code Block
xml
xml
<?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="ImportURAImportCEMIG-anna25">
		<moduleId>TimeSeriesImportRun</moduleId>
	</moduleInstanceDescriptor>

...
</moduleInstanceDescriptors>

 

An example of the URA CEMIG import configuration for the ann25 files will be given here. The importType is named URACEMIG which should be configured in the general section of the import

.Special attention should be given to the timezone since URA data is stored in local time;

Code Block
xml
xml
<?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>URA<<importType>CEMIG</importType>
			<folder>$IMPORT_CEMIG_FOLDER$/importanna</ura</folder>
			<idMapId>uraMapId<<idMapId>cemigMapId</idMapId>
			<missingValue>-999</missingValue>
		<importTimeZone>
				<timeZoneName>CET</timeZoneName>
			</importTimeZone></general>
		<properties>
			<bool key="forecast" value="false"/> <!-- default is false -->
			<string key="vars" value="prec"/> <!-- , separated list of variabeles. If more than one variable is specified, only one timestep is assumed. -->
			<string key="fileNameDateTimePattern" value="prec_'ddMMyyyy'.bin"/> <!-- define the date format to determine T0 or the forecast date  from the file name. -->
			<string key="tdefUnit" value="hour"/> <!-- define the timestep unit: second, minute, hour, day, month, year -->
			<string key="tdefValue" value="3"/> <!-- specifify the value related to the tdefUnit. -->
		</general>properties>
		<timeSeriesSet>
			<moduleInstanceId>ImportURA<<moduleInstanceId>ImportCEMIG-anna25</moduleInstanceId>
			<valueType>scalar<<valueType>grid</valueType>
			<parameterId>Q<parameterId>H.m<observed</parameterId>
			<locationId>FewsLocation<<locationId>CMEG-anna25-location</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="minutehour" multiplier="5"/>
			<relativeViewPeriod unit="minute" start="0" end="100"3"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>

</timeSeriesImportRun>

The IdMapping configuration uraMapIdconfiguration cemigMapId.xml is very important because this needed to maps the internal FEWS Id's to the URA IdCEMIG Id's. An example IdMapping file for the URA importer importer is shown below.:

Code Block
xml
xml
<?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="QH.mobserved" external="QRIO1"/>
	<location internal="FewsLocation" external="1080prec"/>
	....
</idMap>

Example URA file

...