Versions Compared

Key

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

...

The adapter consists of separate pre- and post adapters that can be used to import and export timeseries data to/from the MGB-SA model and control the simulation period. The FEWS general adapter is used to configure both the pre- and post adapter and execute the MGB-SA simulation using the MGB command line executable. This model adapter is written in java. The main functionality of the adapter is to read / write the binary files of MGB-SA in order to input precipitation data from FEWS into the MGB-SA model and to transfer output flow data from MGB-SA back to FEWS. The adapter currently does not provide state handling so the model can only run with a cold start.

Note: there is an earlier version adapter developed by the company LACTEC in 2013 for an earlier version of the MGB model, but there have been various changes to the model file structure of MGB-SA 1.0 so it was decided to create a new adapter which makes more efficient use of Delft-FEWS support libraries and supports the NetCdf file format for more efficient transfer of large datasets.

...

  • This program needs Java version 11 or higher.
  • The native libraries included will work on Windows but not on Linux
  • This program needs the following Java/native libraries:
    • castor-0.9.5p.jar
    • Delft_NetCDF_Util.jar
    • Delft_PI.jar
    • Delft_PI_castor.jar
    • Delft_Util.jar
    • FastInfoset-1.2.6.jar
    • jna-5.7.0.jar (question)
    • joda-time-2.10.jar
    • log4j-1.2-api-2.17.1.jar
    • log4j-api-2.17.1.jar
    • log4j-core-2.17.1.jar
    • log4j-slf4j-impl-2.17.1.jar
    • netcdf-4.6.3p.jar
    • platform-5.7.0.jar (question)
    • slf4j-api-1.7.13.jar
    • xercesImpl.jar
    • crl_x64.dll
    • hhl_x64.dll
    • hx64.dll
    • ms120x64.dll
    • nc_x64.dll
    • z_x64.dlljnidispatch.dll (question)

GeneralAdapterRun Example Configuration

...

In this section the data to be exported from FEWS as input to the module is specified. Data to export to MGB generally includes:

  • Input timeseries data (i.e. rainfall, flow, water levels, evaporationcurrently only precipitation)
  • Run file (i.e start and end time for simulation)

...