Versions Compared

Key

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

...

  • For all files that are written by this adapter, if the file to be written already exists, then it will be overwritten.
  • This program assumes that the model always runs in time zone GMT.
  • This program writes log messages to a log file called dflowfm_pre_adapter_log.txt in the workDir specified in the netcdf run file.
  • This program uses the information in the specified netcdf run file as input and uses this information to do the following actions:
    1. Update MDU file:
      In the MDU file specified in the property "mdu_file" the following fields entries will be updated automatically (no tags needed):

      TStart

      Start time of the model run, in units of Tunit relative to RefDate. This uses the Tunit and RefDate that are specified in the MDU file.

      TStop

      End time of the model run, in units of Tunit relative to RefDate. This uses the Tunit and RefDate that are specified in the MDU file.

      RestartFile

      Either pathname of the input state file relative to the MDU file if the input state file is not empty (warm state start) or empty string if the input state file is an empty dummy file of 0 bytes length (cold state start) or empty string if there is no input state file at all (cold state start).

      RestartDateTime

      The restart time, this is set equal to the start time of the model run. It seems that in D-Flow FM this RestartDateTime is overruled by the timestamp in the filename of the restart file. If this causes problems, then make sure that the filename of the restart file does not contain a timestamp.

      RstInterval

      Interval (in seconds) for writing *_rst.nc restart files. RstInterval is set equal to the model run duration, so that only one output restart file is written, exactly at the end of the model run.

...