hydromt_delwaq.delwaq.DelwaqModel.dw_WriteSegmentOrExchangeData

DelwaqModel.dw_WriteSegmentOrExchangeData(ttime, fname, datablock, boundids, WriteAscii=True, mode='a')[source]

Writes a timestep to a segment/exchange data file (appends to an existing file or creates a new one).

Input:
  • time - timestep number for this timestep

  • fname - File path of the segment/exchange data file</param>

  • datablock - array with data

  • boundids to write more than 1 block

  • WriteAscii - if True to make a copy in an ascii checkfile

  • mode - {“a”, “w”} Force the writting mode, append or overwrite existing files.