MIKE IO
  • Home
  • User Guide
  • Examples
  • API Reference
  • Source Code
  • Report a Bug

MIKE IO: input/output of MIKE files in Python

From .dfsu to DataFrame in four lines.

Python version PyPI version

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);

German Bight, 28–29 October 2017: surface elevation (m) and wind speed (m/s).

Set up in under a minute

uv add mikeio or pip install mikeio, and you’re ready.

Getting started

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.

API Reference

Related packages

MIKE IO 1D for .res1d and .xns11 files.

ModelSkill to compare model results with observations.

Open Source

MIKE IO is BSD-3-Clause licensed and available on GitHub

Design philosophy

 

© 2026 DHI Group

  • Edit this page