...
The GrdcTimeSeriesSerializer class can export any number of timeSeriesSet's but the following restrictions apply due to the nature of the GRDC Near Real-Time Data Format Version 3.0:
- for each locationId it expects exactly one timeSeriesSet wit parameterId='Water Level' and exactly one timeSeriesSet with parameterId='Discharge'. When not configured properly, an exception will be thrown.
- the GRDC format enforces a specific file naming convention. This should be configured properly. When this convention is violated, a warning is given, but no exception is thrown.
...
Configuration (Example)
A complete import export module configuration consists of an ID Mapping file and a Import Export Module Instance file.
ModuleConfigFiles
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <timeSeriesExportRun ......"> <export> <general> <exportType>grdc</exportType> <folder>$EXPORT_EFAS_FOLDER$</folder> <exportFileName> <name>-3.0.nrt</name> <prefix> <currentTimeFormattingString>'NL-1008-'yyyyMMddHHmmss</currentTimeFormattingString> </prefix> </exportFileName> <validate>false</validate> <idMapId>IdExportEFAS</idMapId> <exportTimeZone> <timeZoneName>GMT</timeZoneName> </exportTimeZone> </general> <timeSeriesSet> <moduleInstanceId>ImportMSW</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationId>H-MS-BORD</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour" multiplier="1"/> <relativeViewPeriod unit="hour" start="-192" end="0"/> <readWriteMode>read only</readWriteMode> </timeSeriesSet> </export> </timeSeriesExportRun> |
IdMapFiles
Info |
---|
Defines mappings between FEWS parameters and locations and the expected GRDC locations and parameters. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<idMap xmlns=".......">
<!---->
<parameter internal="Q.m" external="Discharge"/>
<parameter internal="H.m" external="Water Level"/>
<!---->
<location internal="H-MS-BORD" external="BORGHAREN"/>
<location internal="H-RN-0001" external="LOBITH"/>
</idMap>
|