A package that uses the DHI MIKE1D .NET libraries to read res1d and xns11 files.
Project description
MIKE IO 1D: Read MIKE 1D in python
Read res1d and xns11 files.
For other MIKE files (Dfs0, Dfs1, Dfs2, Dfsu,...) use the related package MIKE IO
Requirements
- Windows operating system (Support for Linux is experimental)
- Python x64 3.9, 3.10, 3.11 or 3.12
- VC++ redistributables (already installed if you have MIKE)
Installation
From PyPI:
pip install mikeio1d
Or development version:
pip install https://github.com/DHI/mikeio1d/archive/main.zip
For MIKE IO 1D to work .NET runtime environment (version 3.1 and above) is needed. On Linux operating systems this is not available per default. For example, on Ubuntu distribution to get .NET 7.0 runtime call:
sudo apt install dotnet-runtime-7.0
Where can I get help?
- New ideas and feature requests - GitHub Discussions
- Bugs - GitHub Issues
- General help, FAQ - Stackoverflow with the tag
mikeio
Examples
Read Res1D file Return Pandas DataFrame
>>> from mikeio1d.res1d import Res1D, QueryDataReach
>>> df = Res1D(filename).read()
>>> query = QueryDataReach("WaterLevel", "104l1", 34.4131)
>>> df = res1d.read(query)
For more Res1D examples see this notebook
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file mikeio1d-0.7.0-py3-none-win_amd64.whl
.
File metadata
- Download URL: mikeio1d-0.7.0-py3-none-win_amd64.whl
- Upload date:
- Size: 6.3 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414f72eb6228912a729dc3609bb22571bea809145d272c4b59ada815881d3265 |
|
MD5 | 3edc1c8eb29241c687ff900b0e6ee0c0 |
|
BLAKE2b-256 | 1d9facbc984e9382193fa5c4263f3ef5bbd438cf1a3bf6b66a25ef774dcc7469 |
File details
Details for the file mikeio1d-0.7.0-py3-none-manylinux2010_x86_64.whl
.
File metadata
- Download URL: mikeio1d-0.7.0-py3-none-manylinux2010_x86_64.whl
- Upload date:
- Size: 18.2 MB
- Tags: Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cc30470a2e8ec9d139f3dfdb6244e6b85fc7b86a856c61e10b988d667d46265 |
|
MD5 | 8aa5cde9de0e8bad891dec7c70358a01 |
|
BLAKE2b-256 | 0e240151ca454d673f414abf8664995f0dd6345b32c929d7c8ef5641fcc89744 |