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.13 - 3.15
  • (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?

Metadata

Release files for mikeio1d 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mikeio1d 1.5.0
File Interpreter ABI Platform Actions
mikeio1d-1.5.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for mikeio1d-1.5.0-py3-none-win_amd64.whl
mikeio1d-1.5.0-py3-none-manylinux2010_x86_64.whl Python 3 none Linux glibc 2.12+ x86-64 Details for mikeio1d-1.5.0-py3-none-manylinux2010_x86_64.whl

Total release size: 24.8 MB

Release files / mikeio1d-1.5.0-py3-none-win_amd64.whl

Download URL mikeio1d-1.5.0-py3-none-win_amd64.whl
Size 6.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f2a76aa5f11f8f6ceb962b878ccf8d06d2200096507e323b82e52f06d7447532
BLAKE2b-256 checksum
How to use checksums
a1e63bea93e63afd3d6f9077052268875a942a55b20d07388e231b7d1bc7d74c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / mikeio1d-1.5.0-py3-none-manylinux2010_x86_64.whl

Download URL mikeio1d-1.5.0-py3-none-manylinux2010_x86_64.whl
Size 18.3 MB
Tags Linux glibc 2.12+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cd274e08679f9c40f2793e24216fa7f02e4c11323ccca70d93dbf5442a98e57f
BLAKE2b-256 checksum
How to use checksums
2b02aea3aa1b97aa47aa04d4da6713d77eec9f441fd079907b2fa5be8d2edc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for mikeio1d 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page