Overview
This import is available in DELFT-FEWS versions after 28-10-2009 (FEWS version 2009.02)
Imports data from NetCDF files which comply to the CF standard.
More information about the cf standards can be found at: http://cf-pcmdi.llnl.gov/conformance/requirements-and-recommendations/1.4
There are three types of NetCDF-CF imports which can be defined:
- Time series (NETCDF-CF_TIMESERIES)
- Profiles (NETCDF-CF_PROFILE)
- Grids (NETCDF-CF_GRID)
Configuring the import
An example of the NETCDF-CF_TIMESERIES import will be given here.
<?xml version="1.0" encoding="UTF-8"?> <timeSeriesImportRun 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/timeSeriesImportRun.xsd"> <import> <general> <importType>NETCDF-CF_TIMESERIES</importType> <folder>$IMPORT_FOLDER$/NETCDF</folder> <failedFolder>$IMPORT_FAILED_FOLDER$</failedFolder> <backupFolder>$IMPORT_BACKUP_FOLDER$</backupFolder> <idMapId>IdImportNetCDF</idMapId> </general> <timeSeriesSet> <moduleInstanceId>ImportNetcdf_Timeseries</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.udm</parameterId> <locationSetId>DMFlowPoints</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun>
An example of the IdMapping used for the NETCDF-CF_TIMESERIES import will be given below.
In this example, the mapped locations correspond to the locations of the locatiesSet as defined above in the ImportNetcdf_Timeseries.xml.
Note that in the IdMapping of the parameters and locations, the external name must match the variable and location names as used by the netcdf file exactly (case sensitive).
<?xml version="1.0" encoding="UTF-8"?> <idMap version="1.1" 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/idMap.xsd"> <parameter internal="Q.udm" external="afvoerdm_takken"/> <!--DMFlowPoints--> <location internal="DMTak_1001" external="1001"/> <location internal="DMTak_1002" external="1002"/> <location internal="DMTak_1003" external="1003"/> <location internal="DMTak_1004" external="1004"/> <location internal="DMTak_1006" external="1006"/> ... <location internal="DMTak_6113" external="6113"/> <location internal="DMTak_6114" external="6114"/> <location internal="DMTak_6115" external="6115"/> </idMap>