Skip to main content

A package that uses the DHI MIKE1D .NET libraries to read res1d and xns11 files.

Project description

logo

MIKE IO 1D: Read MIKE 1D in python

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

Requirements

  • Windows, Linux (experimental)
  • Python x64 3.9 - 3.12
  • (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

>>>  from mikeio1d import Res1D
>>>  res = Res1D('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

>>>  from mikeio1d import Xns11

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

Geometry

Continue learning with additional examples.

Where can I get help?

Project details


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

mikeio1d-0.8.0-py3-none-win_amd64.whl (5.4 MB view details)

Uploaded Python 3 Windows x86-64

mikeio1d-0.8.0-py3-none-manylinux2010_x86_64.whl (17.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.12+ x86-64

mikeio1d-0.8.0-py3-none-any.whl (17.2 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mikeio1d-0.8.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e94b41f0136e59637534a3d3dc88816e6f8b101839c6d1d52368a169a376c50
MD5 db094ef56033553526597d64b85f98fd
BLAKE2b-256 228d5b6284c038d0498e85f7b023e7deb6d8cf36922587a0dcf865bfd42c1585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mikeio1d-0.8.0-py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 108bf555d839af58156aefad861bdf708c1ed1543f105ea4d7ed8287dc2ad154
MD5 2b735ec075ba0bcc5115b93ee53d63af
BLAKE2b-256 21ed28973bcf4c9c685fe26be80a87c89b6e8d8af9c4c2a2c243aa70c85b2428

See more details on using hashes here.

File details

Details for the file mikeio1d-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: mikeio1d-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mikeio1d-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c555b585ccbbf80b6cbd8da09f7fdf472fa4c3b1ff7d09b73771da71d58cff4b
MD5 df09b2a9a4de64dad803b97a3f0d6abd
BLAKE2b-256 3a1d25cd694dd8171f673f3c0f174a59440809a1bb0da52b4e753c946e81c8ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page