It is possible to copy existing external historical time series to another external historical time series. This can be done by the copyArchiveData task in the export archive module.
This task is only available in this module and not at the archive server because the archive server doesn't have all the required netcdf-libraries installed for this task.
This task can be used to copy the data from a existing netcdf-file to another netcdf-file. To prevent duplicate time series it is necessary to map the existing time series to new time series.
Currently the following options are supported:
1) Copying from an existing FEWS parameter/qualifier combination to another FEWS parameter/qualifier combination
2) Copying from an existing module instance id to another module instance id
3) Copying from an existing netcdf parameter (variable name) to another netcdf parameter
Below a basic example is shown
<?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 http://fews.wldelft.nl/schemas/version1.0/exportArchiveModule.xsd"> <copyArchivedData> <general> <archiveFolder>archiveFolder</archiveFolder> <relativePeriod start="-100" end="0" unit="week"></relativePeriod> </general> <archiveNetcdf originalfileName="Rainfall_Processed_1h.nc" targetfileName="Rainfall_Processed_1h_raw.nc"> <netcdfMapping> <parameter sourceId="precipitation_observed" targetId="precipitation_observed_raw"></parameter> </netcdfMapping> <timeSeriesSetMapping> <moduleInstance sourceId="originalModuleInstanceId" targetId="newModuleInstanceId"></moduleInstance> <map originalParameter="P.obs" targetParameter="P.obs.raw"></map> </timeSeriesSetMapping> </archiveNetcdf> </copyArchivedData> </exportArchiveModule>
In the example shown above the data in all of the files with name Rainfall_Processed_1h.nc is copied to a file named Rainfall_Processed_1h_raw.nc for the given period.
The original time series will be copied to a new time series with module instance id newModuleInstanceId and parameter P.obs.raw. The new nectcdf parameter will be precipitation_observed_raw.