...
| Note |
|---|
This functionality has only been implemented for external historical time series. Do not use this for simulated series or external forecasts. |
| Code Block |
|---|
|
<?xml version="1.0" encoding="UTF-8"?>
<exportArchiveModule xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/exportArchiveModule.xsd">
<exportObserved>
<general>
<archiveFolder>$ARCHIVE_FOLDER$</archiveFolder>
<relativePeriod start="-7" end="0" unit="day"/>
<idMapId>IdMapToArchive</idMapId>
</general>
<activities>
<netcdfExportActivities>
<netcdfExportActivity>
<fileName>ExportExternalHistoricalWorkflowSelection.nc</fileName>
<areaId>$AreaId$</areaId>
<workflowTimeSeriesSelection>
<timeSeriesFilter>
<moduleInstanceId>CreateExternalHistorical</moduleInstanceId>
<parameterId>H.simulated</parameterId>
<locationId>dummy</locationId>
</timeSeriesFilter>
<workflowId>Create_External_Historical</workflowId>
</workflowTimeSeriesSelection>
</netcdfExportActivity>
</netcdfExportActivities>
</activities>
</exportObserved>
</exportArchiveModule>
|
...
| Code Block |
|---|
| language | xml |
|---|
| title | example amalgamate observations |
|---|
|
<exportArchiveModule xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/exportArchiveModule.xsd">
<amalgamateObserved>
<general>
<archiveFolder>$ARCHIVE_FOLDER$</archiveFolder>
<relativePeriod unit="day" start="-62" end="-31"></relativePeriod>
</general>
<activities>
<amalgamateObservedData>
<areaId>$BASIN$</areaId>
</amalgamateObservedData>
</activities>
</amalgamateObserved>
</exportArchiveModule>
|
...
It is possible to store a simulation partly in the Open Archive (meta data, states, reports, modifiers and reports) and partly (time series) in the netcdf storage. This can be useful when you want to have a 'clean' time series only storage. This can be configured by add the element netcdfStorageExport to the general section. An example is given below.
| Code Block |
|---|
|
<?xml version="1.0" encoding="UTF-8"?>
<exportArchiveModule xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/exportArchiveModule.xsd">
<exportSimulated>
<general>
<archiveFolder>folder</archiveFolder>
<areaId>area</areaId>
<netcdfStorageExport>
<matchingAttributeId>attribute1</matchingAttributeId>
<matchingAttributeId>attribute2</matchingAttributeId>
</netcdfStorageExport>
<unitConversionsId>UnitConversionArchive</unitConversionsId>
<omitMissingValues>true</omitMissingValues>
<coldStartDataExportRelativeStartTime value="-1" unit="day"></coldStartDataExportRelativeStartTime> </general>
<activities>
<netcdfExportActivities>
<netcdfExportActivity>
<fileName>test.nc</fileName>
<timeSeriesSet>
<moduleInstanceId>test</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>par</parameterId>
<locationId>loc</locationId>
<timeSeriesType>simulated forecasting</timeSeriesType>
<timeStep unit="hour"></timeStep>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</netcdfExportActivity>
</netcdfExportActivities>
</activities>
</exportSimulated>
</exportArchiveModule> |
...
Because the time series and the meta data for the simulation are now stored separately it is important to know to which simulation a set of netcdf files belong. The meta data and the netcdf files are matched by using the task run id. In addition they are matched by the configured matchingAttributeId. The meta data of a simulation has the value of these attributes stored. They need to match with the values in the actual netcdf files. In netcdf storage you need to configure were the time series are stored so that they can be harvested by the harvester of the external netcdf storage. Below a configuration example is shown.
| Code Block |
|---|
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2014 rel. 2 sp1 (http://www.altova.com) by Afdeling ICT (Stichting Deltares) -->
<externalStorage xsi:schemaLocation="http://www.wldelft.nl/fews/archive http://fews.wldelft.nl/schemas//version1.0/archive-schemas/externalStorage.xsd" xmlns="http://www.wldelft.nl/fews/archive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<simulatedForecastingNetcdfStorage id="rwsos.noordzee.matroos.maps">
<dataFolder>c:\FEWS\archive\matroos\maps</dataFolder>
<matchingAttributeId>source</matchingAttributeId>
<matchingAttributeId>issue_time</matchingAttributeId>
</simulatedForecastingNetcdfStorage>
</externalStorage> |
...
| Code Block |
|---|
|
<exportArchiveModule xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/exportArchiveModule.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews">
<exportSnapShot>
<general>
<archiveFolder>$ARCHIVE_DIR$</archiveFolder>
</general>
<activities>
<exportSnapShot>
<areaId>area</areaId>
<filter id="only time series">
<xmlConfig enabled="false" name="Default xml config" synchLevel="11"/>
<coldStates enabled="false" name="Default cold states" synchLevel="11"/>
<moduleDataSets enabled="false" name="Default module data sets" synchLevel="11"/>
<mapLayers enabled="false" name="Default map layers" synchLevel="11"/>
<icons enabled="false" name="Default icons" synchLevel="11"/>
<reportTemplates enabled="false" name="Default report templates" synchLevel="11"/>
<reportImages enabled="false" name="Default report images" synchLevel="11"/>
<continuousTimeSeries enabled="true" name="Simulated" synchLevel="0" maxAge="1000" unit="week"/>
<continuousTimeSeries enabled="true" name="Telemetry" synchLevel="1" maxAge="1000" unit="week"/>
<continuousTimeSeries enabled="true" name="Manual" synchLevel="5" maxAge="1000" unit="week"/>
<continuousTimeSeries enabled="true" name="Astronomical and climatological" synchLevel="4" maxAge="1000" unit="week"/>
<continuousTimeSeries enabled="true" name="Small external forecast grids" synchLevel="6" maxAge="1000" unit="week"/>
<continuousTimeSeries enabled="true" name="Large external forecast grids" synchLevel="16" maxAge="10000" unit="week"/>
<warmStates enabled="false" name="Warm states" maxAge="10" unit="week"/>
<logEntries enabled="false" name="Log Entries" maxAge="1" unit="week"/>
<thresholdEvents enabled="false" name="Threshold Events" maxAge="1" unit="week"/>
</filter>
</exportSnapShot>
</activities>
</exportSnapShot>
</exportArchiveModule>
|
...
| Code Block |
|---|
|
<exportArchiveModule
xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.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>area</areaId>
<sourceId>source</sourceId>
<sourceFile>$INPUT_FOLDER$/sourceA</sourceFile>
<sourceFile>$INPUT_FOLDER$/sourceB</sourceFile>
<moveFile>true</moveFile>
</exportProduct>
</activities>
</exportProducts>
</exportArchiveModule> |
...
| Code Block |
|---|
|
<exportArchiveModule
xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.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>
<sources>
<zipProduct>true</zipProduct>
<sourceFiles>$INPUT_FOLDER$/testdata/exportandmoveandzip/source?</sourceFiles>
<relativePath>aa</relativePath>
</sources>
<moveFile>true</moveFile>
</exportProduct>
</activities>
</exportProducts>
</exportArchiveModule> |
...
| Code Block |
|---|
|
<exportArchiveModule
xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.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> |
...