Skip to main content

logo

MIKE IO 1D: Read MIKE 1D in python

Python version Full test PyPI version OS Downloads

Read, manipulate, and analyze res1d, res, resx, out, and xns11 files.

For other MIKE files (Dfs0, Dfs1, Dfs2, Dfsu,...) use the related package MIKE IO

Most users of MIKE IO 1D will also find MIKE+Py of interest.

Requirements

  • Windows, Linux (experimental)
  • Python x64 3.12 - 3.14
  • (Windows) VC++ redistributables (already installed if you have MIKE)
  • (Linux) .NET Runtime (not installed by default)

Installation

From PyPI:

pip install mikeio1d

Linux users will need to install .NET runtime. For Ubuntu, you can install .NET runtime as follows:

sudo apt install dotnet-runtime-8.0

Or development version:

pip install https://github.com/DHI/mikeio1d/archive/main.zip

If you're on the development branch, you need .NET SDK. Ubuntu users can install these dependencies as follows:

sudo apt install dotnet-sdk-8.0

Documentation

Check out the official documentation for MIKE IO 1D.

Getting started

Read network results into a DataFrame

>>>  import mikeio1d
>>>  res = mikeio1d.open('my_results.res1d')
>>>  df = res.read()

>>>  df_reach = res.reaches['my_reach'].Discharge.read()
>>>  df_node  = res.nodes['my_node'].WaterLevel.read()

Read Xns11 file and plot a cross section

>>>  import mikeio1d

# Plot section with location id 'basin_right', chainage '238.800', and topo id '1'.
>>>  xns = mikeio1d.open("mikep_cs_demo.xns11")
>>>  xns['basin_right', '238.800', '1'].plot()

Geometry

Continue learning with additional examples.

Where can I get help?

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mikeio1d-1.3.1-py3-none-win_amd64.whl (6.4 MB view details)

Uploaded Python 3Windows x86-64

mikeio1d-1.3.1-py3-none-manylinux2010_x86_64.whl (18.3 MB view details)

Uploaded Python 3manylinux: glibc 2.12+ x86-64

File details

Details for the file mikeio1d-1.3.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: mikeio1d-1.3.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for mikeio1d-1.3.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fa494bef788c26113e0af5c956ad1a42a354b9a6cb4cf8e77eaf036ec47085f7
MD5 cdbdc644ca1c9d2a0b7026350d782a61
BLAKE2b-256 c619dc8b6dbf7a723fa2f4451c77b04a82fc9e256d7e6ebde6d498efce274bec

See more details on using hashes here.

File details

Details for the file mikeio1d-1.3.1-py3-none-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for mikeio1d-1.3.1-py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 90b428db2e5f586d73d8a37809540f0e263c2a4a5463a6466ead23eabcf47bc5
MD5 dd303deabd5377a410e907014dca72d7
BLAKE2b-256 86954345ced1632c90054f6e23dd27861cbae3ab5b0f2ff542edc31e6544be61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page