MIKE IO: input/output of MIKE files in Python
Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
MIKE IO facilitates common data processing workflows for MIKE files in Python.
MIKE IO Course | October 2022
📢 Sign up for the online instructor-led course here!
MIKE IO 1.0
MIKE IO 1.0 is now available and it has a lot of benefits to working with dfs files even easier than before.
Important changes
- New class
mikeio.DataArraywhich will be the main class to interact with, having these properties and methods- item info
- geometry (grid coordinates)
- methods for plotting
- methods for aggreation in time and space
- Indexing into a dataset e.g.
ds.Surface_elevationto get a specific item, will not return a numpy array, but amikeio.DataArray
Requirements
- Windows or Linux operating system
- Python x64 3.7 - 3.10
- (Windows) VC++ redistributables (already installed if you have MIKE)
Where can I get help?
- Documentation - https://dhi.github.io/mikeio/
- General help, new ideas and feature requests - GitHub Discussions
- Bugs - GitHub Issues
Installation
From PyPI:
pip install mikeio
Or development version:
pip install https://github.com/DHI/mikeio/archive/main.zip
⚠️ Don't use conda to install MIKE IO!, the version on conda is outdated.
Tested
MIKE IO is tested extensively.
See detailed test coverage report below:
---------- coverage: platform linux, python 3.10.4-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------------------
mikeio/__init__.py 39 2 95%
mikeio/base.py 26 5 81%
mikeio/custom_exceptions.py 25 8 68%
mikeio/data_utils.py 127 22 83%
mikeio/dataarray.py 927 145 84%
mikeio/dataset.py 722 92 87%
mikeio/dfs0.py 284 33 88%
mikeio/dfs1.py 62 6 90%
mikeio/dfs2.py 244 42 83%
mikeio/dfs3.py 201 15 93%
mikeio/dfs.py 275 30 89%
mikeio/dfsu.py 699 63 91%
mikeio/dfsu_factory.py 41 2 95%
mikeio/dfsu_layered.py 186 23 88%
mikeio/dfsu_spectral.py 128 7 95%
mikeio/dfsutil.py 104 8 92%
mikeio/eum.py 1297 3 99%
mikeio/generic.py 396 9 98%
mikeio/helpers.py 16 5 69%
mikeio/interpolation.py 63 1 98%
mikeio/pfs.py 93 0 100%
mikeio/spatial/FM_geometry.py 1123 116 90%
mikeio/spatial/FM_utils.py 293 30 90%
mikeio/spatial/__init__.py 0 0 100%
mikeio/spatial/crs.py 50 25 50%
mikeio/spatial/geometry.py 88 33 62%
mikeio/spatial/grid_geometry.py 497 33 93%
mikeio/spatial/utils.py 38 0 100%
mikeio/spectral_utils.py 89 5 94%
mikeio/xyz.py 12 0 100%
-----------------------------------------------------
TOTAL 8145 763 91%
============ 561 passed in 74.58s (0:01:14) ============
Cloud enabled
It is possible to run MIKE IO in your favorite cloud notebook environment e.g. Deepnote, Google Colab, etc...
Metadata
Release files for mikeio 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mikeio-1.1.0.tar.gz | 159.6 kB | Without provenance | Details for mikeio-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mikeio-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for mikeio-1.1.0-py3-none-any.whl |
Total release size: 347.4 kB
Release files / mikeio-1.1.0.tar.gz
| Download URL | mikeio-1.1.0.tar.gz |
|---|---|
| Size | 159.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea8bfd0f3f7dc4fa7fcd4eac650610066c33c403de3b0fcab4ea3fcbc1e37062
|
|
BLAKE2b-256 checksum How to use checksums |
3632da40a4576915612cfbe9b70df5b05c0d4216ef3cc6534d3b62eaa88728ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.9
|
Release files / mikeio-1.1.0-py3-none-any.whl
| Download URL | mikeio-1.1.0-py3-none-any.whl |
|---|---|
| Size | 187.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
131cf71667ebc346ead7ca880c17acc2dcc8cd3506d5e7e29fdc198bc75edff5
|
|
BLAKE2b-256 checksum How to use checksums |
425e90e98777e4ceed4196610234aac130dc74f3e22c39cb2f5531db70b80cd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.9
|
Security for mikeio 1.1.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.