Reading of dfs0 file not having time column such as Level-Area-Volume dfs0
Closed this issue · 3 comments
amit1304in1 commented
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
ecomodeller commented
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
amit1304in1 commented
Dear Henrik,
Thanks for your quick response
Best regards
Amit Garg
…On Wed, 11 May 2022 at 11:13, Henrik Andersson ***@***.***> wrote:
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 <https://pypi.org/project/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: image]
<https://user-images.githubusercontent.com/614215/167776911-3355f2f3-45e9-4a76-b7ea-bca147187eec.png>
—
Reply to this email directly, view it on GitHub
<#342 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASE5WHHGXTE6D2NKR6DMUTLVJNCHNANCNFSM5VSP2OUQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
amit1304in1 commented
Thanks for you reply. It worked for me