DFS0-Format

From BlueM
Jump to navigation Jump to search

Wave.png Wave | Download | Development

The DFS0 file format is a proprietary binary time series format developed by DHI and is used in various MIKE products.

File format documentation: https://docs.mikepoweredbydhi.com/core_libraries/dfs/dfs-file-formats/#dfs0-file

BlueM.Wave can read time series from DFS0 files provided that the files use a calendar-based time axis.

BlueM.Wave can also export one or more time series to DFS0 format.

Automatic conversion between Wave Interpretations and DFS0 DataValueTypes:

Interpretation DataValueType
Instantaneous Instantaneous
BlockLeft MeanStepBackward
BlockRight MeanStepForward
CumulativePerTimestep StepAccumulated
Cumulative Accumulated
Undefined Instantaneous

Notes

  • If more than one time series is exported to one DFS0 file, any missing timestamps in any of the time series are filled with NaN (DFS0 DeleteValue).
  • Time series values are always exported with DataType DfsSimpleType.Double
  • Most MIKE products only accept DFS0 files as input if the item type (e.g. "Discharge" or "Rainfall") corresponds to what it expects. As Wave cannot automatically derive the item type, the user has to manually set the item type (and corresponding unit) when exporting to DFS0. Item types and corresponding units for DFS0 files are managed using DHI's so-called EUM (Engineering Unit Management), which defines approx. 600 item types (eumItem) and another 600 units (eumUnit). In order to make item and unit selection usable, only a small subset of hydrology-related items and units can currently be selected when exporting to DFS0.