Versions Compared

Key

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

...

Communication between the General Adapter and a module is established through the published interface (PI). The PI is an XML based data interchange format. The General Adapter is configured to provide the data required for a module to run in the PI format. A module adapter is then used to translate the data from the PI to the module native format. Vice versa, results will first be exported to the PI format by a module adapter before the General Adapter imports them back into DELFT-FEWS.
Grid and scalar timeseries can also be exchanged using netCDF format.
This exchange format is intended for the modules that obtain their input from netCDF files and/or write their output to netCDF files.

The General Adapter module can be configured to carry out a sequence of five types of tasks;

  • Startup Activities. These activities are run prior to a module run and any export import of data. The activities defined are generally used to remove files from previous runs that may implicate the current run.
  • Export Activities. These activities define all items to be exported through the published interface XML formats to the external module, prior to the module or the module adapters being initialised. Grid and scalar timeseries can be exported also in netCDF format.
  • Execute Activities. These execute activities define the external executables or Java classes to be run. Tracking of diagnostics from these external activities is included in this section.
  • Import Activities: These activities define all items to be imported following successful completion of the module run.
  • Shutdown Activities. These activities are run following completion of all other activities. The activities defined are generally used to remove files no longer required.

...

location id to select the rating curve

exportNetcdfActivity

Exports grid or scalar timeseries to netCDF file. All timeseries specified inside one exportNetcdfActivity must have the same value type - grid or scalar.
For an export it is required that all ensembles have exactly the same ensemble member indices. The usage of ensemble member id's (strings) is not supported yet.


Figure 2 Elements of the ExportNetcdfActivity configuration

...

Root element for importing grid time series resulting from the run of the external modules. Multiple elements may be defined. importFile and timeSeriesSet should be defined.

importPiNetcdfActivity

Root element for importing grid time series in Pi-Netcdf format. importFile and timeSeriesSet should be definedImports grid and scalar time series resulting from the run of the external modules.
All timeseries sets specified inside one importPiNetcdfActivity must have the same value type - grid or scalar.

importProfilesActivity

Root element for importing longitudinal profile time series resulting from the run of the external modules. Multiple elements may be defined. importFile and timeSeriesSet should be defined.

...