...
- BUENO/BUENA: good; FEWS quality flag: ORIGINAL_RELIABLE
- MALO/MALA: bad; FEWS quality flag: ORIGINAL_DOUBTFUL
- NO DATO: no data; FEWS quality flag: ORIGINAL_MISSING
Configuring the Import
An example of the URA configuration will be given here. The importType is named URA which should be configured in the general section of the import.
Special attention should be given to the timezone;
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:
Code Block | ||||
---|---|---|---|---|
| ||||
<?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="ImportURA"> <moduleId>TimeSeriesImportRun</moduleId> </moduleInstanceDescriptor> ... </moduleInstanceDescriptors> |
An example of the URA import configuration is shown below:will be given here. The importType is named URA 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 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> <folder>$IMPORT_FOLDER$/import/chc</folder> <idMapId>chcMapId</idMapId> <importTimeZone> <timeZoneName>CET</timeZoneName> </importTimeZone> </general> <timeSeriesSet> <moduleInstanceId>ImportURA</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.m</parameterId> <locationId>FewsLocation</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="5"/> <relativeViewPeriod unit="minute" start="0" end="100"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
...
The IdMapping configuration chcMapId.xml is very important because this maps the internal FEWS Id's to the CHC Id's. An example IdMapping file for the CHC importer is shown below.:
...