Versions Compared

Key

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

...

Code Block
languagexml
<?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>
			<workflowTimeSeriesSelection>
				<timeSeriesFilter>
					<parameterId>H.m</parameterId>
				</timeSeriesFilter>
			</workflowTimeSeriesSelection>
		</activities>
	</exportExternalHistoricalTimeSeriesToArchiveDatabase>
</exportArchiveModule>


Archiving simulated data to the archive database


Below an example of how to configure an archive export of simulated data to the archive database.

Code Block
languagexml
<?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">
	<exportSimulatedTimeSeriesToArchiveDatabase>
		<general>
			<exportUnitConversionsId>UnitConversionDatabase</exportUnitConversionsId>
			<timeZoneName>CET</timeZoneName>
			<options>
				<double key="doubleKey" value="12"/>
			</options>
		</general>
		<activities>
			<areaId>myAreaId</areaId>
			<sourceId>mySourceId</sourceId>
			<timeSeriesSet>
				<moduleInstanceId>ArchiveExportSimulatedToArchiveDatabaseTest</moduleInstanceId>
				<valueType>scalar</valueType>
				<parameterId>H.m</parameterId>
				<locationId>H-2001</locationId>
				<locationId>H-2002</locationId>
				<timeSeriesType>simulated forecasting</timeSeriesType>
				<timeStep unit="hour"/>
				<readWriteMode>read complete forecast</readWriteMode>
			</timeSeriesSet>
		</activities>
	</exportSimulatedTimeSeriesToArchiveDatabase>
	<exportSimulated>
		<general>
			<archiveFolder>$ARCHIVE_DIR$</archiveFolder>
			<areaId>area</areaId>
			<sourceId>source</sourceId>
		</general>
		<activities></activities>
	</exportSimulated>
</exportArchiveModule>


At the moment it is only possible to export the current simulated data to the archive database. The options in the general section are similar to the options in the observations export. The activities section can be used to define which time series should be exported. This can be done by using time series sets or by using a time series filter. 

Below an example of how to configure an export with time series filters.

Code Block
languagexml
<?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">
	<exportSimulatedTimeSeriesToArchiveDatabase>
		<general>
			<exportUnitConversionsId>UnitConversionDatabase</exportUnitConversionsId>
			<timeZoneName>CET</timeZoneName>
			<options>
				<double key="doubleKey" value="12"/>
			</options>
		</general>
		<activities>
			<areaId>myAreaId</areaId>
			<sourceId>mySourceId</sourceId>
			<workflowTimeSeriesSelection>
				<timeSeriesFilter>
					<parameterId>H.m</parameterId>
				</timeSeriesFilter>
			</workflowTimeSeriesSelection>
		</activities>
	</exportSimulatedTimeSeriesToArchiveDatabase>
</exportArchiveModule>


Archiving external forecast data to the archive database

Below an example of how to configure an archive export of external forecasts 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">
	<exportExternalForecastingTimeSeriesToArchiveDatabase>
		<general>
			<exportUnitConversionsId>UnitConversionDatabase</exportUnitConversionsId>
			<timeZoneName>CET</timeZoneName>
			<options>
				<double key="doubleKey" value="12"/>
			</options>
		</general>
		<activities>
			<areaId>myAreaId</areaId>
			<sourceId>mySourceId</sourceId>
			<timeSeriesSet>
				<moduleInstanceId>ArchiveExportExternalForecastToArchiveDatabaseTest</moduleInstanceId>
				<valueType>scalar</valueType>
				<parameterId>H.m</parameterId>
				<locationId>H-2001</locationId>
				<locationId>H-2002</locationId>
				<timeSeriesType>external forecasting</timeSeriesType>
				<timeStep unit="hour"/>
				<readWriteMode>read complete forecast</readWriteMode>
			</timeSeriesSet>
		</activities>
	</exportExternalForecastingTimeSeriesToArchiveDatabase>
</exportArchiveModule>


It is also possible to define which time series should be exported by using a time series filter. Below an example.

Code Block
languagexml
<?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">
	<exportExternalForecastingTimeSeriesToArchiveDatabase>
		<general>
			<exportUnitConversionsId>UnitConversionDatabase</exportUnitConversionsId>
			<timeZoneName>CET</timeZoneName>
			<options>
				<double key="doubleKey" value="12"/>
			</options>
		</general>
		<activities>
			<areaId>myAreaId</areaId>
			<sourceId>mySourceId</sourceId>
			<workflowTimeSeriesSelection>
				<timeSeriesFilter>
					<parameterId>H.m</parameterId>
				</timeSeriesFilter>
			</workflowTimeSeriesSelection>
		</activities>
	</exportExternalForecastingTimeSeriesToArchiveDatabase>
</exportArchiveModule>