
MIKE IO: input/output of MIKE files in Python
From .dfsu to DataFrame in four lines.
import mikeio
ds = mikeio.read("data/NorthSea_HD_and_windspeed.dfsu")
storm = ds.sel(x=8.0, y=54.0, time=slice("2017-10-28", "2017-10-29"))
df = storm.to_dataframe() # pandas from here on
df.plot(subplots=True);Set up in under a minute
uv add mikeio or pip install mikeio, and you’re ready.
dfs, mesh and PFS files
Read, write and manipulate dfs{0,1,2,3,u} and mesh files, and the PFS setup files (.m21fm, .m3fm, …) that drive MIKE models. Data converts to pandas and xarray, and builds from pandas and polars.
Open Source
MIKE IO is BSD-3-Clause licensed and available on GitHub