...
Code Block | ||
---|---|---|
| ||
<exportArchiveModule xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/exportArchiveModule.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews"> <exportProducts> <general> <archiveFolder>$ARCHIVE_DIR$</archiveFolder> </general> <activities> <exportProduct> <areaId>areaTest</areaId> <sourceId>sourceTest</sourceId> <importFolder>$IMPORT_DIR$</importFolder> <fileNameProductDateTimePattern>yyyyMMdd'.nc'</fileNameProductDateTimePattern> </exportProduct> </activities> </exportProducts> </exportArchiveModule> |
Archiving observed data to the archive database
Below an example of how to configure an export of scalar data to the archive database.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <exportArchiveModule xsi:schemaLocation="http://www.wldelft.nl/fews file:///c:/fews_trunk/xml-schemas/exportArchiveModule.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews"> <exportExternalHistoricalTimeSeriesToArchiveDatabase> <general> <relativePeriod start="-10" end="0" unit="day"/> <exportUnitConversionsId>UnitConversionDatabase</exportUnitConversionsId> <timeZoneName>CET</timeZoneName> <options> <double key="doubleKey" value="12"/> </options> </general> <activities> <areaId>myAreaId</areaId> <sourceId>mySourceId</sourceId> <timeSeriesSet> <moduleInstanceId>ArchiveExportObservedToArchiveDatabaseTest</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H.m</parameterId> <locationId>H-2001</locationId> <locationId>H-2002</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </activities> </exportExternalHistoricalTimeSeriesToArchiveDatabase> </exportArchiveModule> |
The general section can be used to define generic options like the period to export. The MongoDB-plugin has the option to store data in GMT and in a local time zone. To configure the local time zone the timeZoneName can be used. The options tag can be used to define custom properties which be send the plugin. This makes it possible to configure custom properties for each database plugin.
The activities section is used