DHI/mikeio

Reading of dfs0 file not having time column such as Level-Area-Volume dfs0

Closed this issue · 3 comments

I am trying to convert a dfs0 file which is not a time series in to a text file but while reading dfs0 mikeio is reading first column as datetime.
BhamaAskheda_LevelAreaVolumeTable.zip

The purpose of MIKE IO is to make life easy for common workflows. You don't need MIKE IO to read this table.

You can use mikecore to read this file into a NumPy array or a dataframe

from mikecore.DfsFileFactory import DfsFileFactory
dfs = DfsFileFactory.DfsGenericOpen("BhamaAskheda_LevelAreaVolumeTable.dfs0")
data = dfs.ReadDfs0DataDouble()
data 

image

Thanks for you reply. It worked for me