Versions Compared

Key

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

...

The import also needs an id map configuration file, that contains a mapping between the time series sets in the import configuration and the variables in the file(s) to import. For each time series set in the import configuration the import searches for the corresponding variable(s) in the file(s) to import. If a corresponding variable is found, then the data from that variable is imported. Only data for the configured time series sets is downloaded and imported, all other data in the import file(s) is ignored. Below is an example id map configuration.

Note

The external parameter id is case sensitive.

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<idMap 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" version="1.1">
	<parameter internal="T.obs" external="sst"/>
	<location internal="gridLocation1" external="unknown"/>
</idMap>
Note

The external parameter id is case sensitive.

A NetCDF file can contain multiple variables. By default the external parameter id is matched to the names of the variables in the NetCDF file to find the required variable to import. There also is an option to use the standard_name attribute or long_name attribute of the variable in the NetCDF file. To use this option add the variable_identification_method property to the import configuration. This can be done by adding the following lines to the import configuration file, just above the time series sets:

...

The value can be "standard_name", "long_name" or "variable_name" (default). If value is e.g. "standard_name", then the external parameter id from the id map configuration file is matched to the standard_name attributes of the variables in the NetCDF file to find the required variable to import. If the variable_identification_method property is not present, then "variable_name" is used by default. The variable_identification_method property currently only works for import types "NETCDF-CF_GRID", "NETCDF-CF_TIMESERIES" and "NETCDF-CF_PROFILE".

Note

Currently it is not possible to import data from the same variable in the import file to multiple time series sets in Delft-FEWS. If required, this can be done using a separate import for each time series set.

Import data from a single file

...