A faster version of DHI mikeio with some added functionalities
Project description
Installation
pip install fastmikeio
Notes
- The package currently works only with 3D sigmal layer dfsu and vertical plane dfsu files
Features
- Export the mesh directly from 3D Dfsu file using the code below:
import fastmikeio
dfsu = fastmikeio.read("3D dfsu.dfsu")
dfsu.geometry.to_mesh(output_fname)
- Extract vertical profile from 3D dfsu file
x = [2000, 2100]
y = [100, 234]
output_filename = "Vertical Profile.dfsu"
vertical = dfsu.vertical_extractor(x, y, output_filename)
- Retrive data as useful numpy array
print(dfsu) # Helper statement to get item indices
print(dfsu.n_layers)
print(dfsu.n_timesteps)
dfsu.get_data(item_idx=1, time_idx=[0, dfsu.n_timesteps-1], layer_idx=2) # (1, 2, 1, n_2d_elements)
dfsu.get_data(item_idx=1) # (1, n_timesteps, n_layers, n_2d_elements)
dfsu.get_data(reshape=False) # (n_items, n_timesteps, n_3d_elements)
dfsu.get_data() # (n_items, n_timesteps, n_layers, n_2d_elements)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastmikeio-0.0.1.tar.gz
(15.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastmikeio-0.0.1.tar.gz.
File metadata
- Download URL: fastmikeio-0.0.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
718ffe5341368ed8f2ac76489d97e585ebd1f128d04c9f76433c0bd58483cb3c
|
|
| MD5 |
a21d7f06bf32e1d69056b851a1d33c60
|
|
| BLAKE2b-256 |
dceae780ef552ed9b3a1dce6b1fb5cd0dd7cc67f163027a73ef2e9979e657ae3
|
File details
Details for the file fastmikeio-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fastmikeio-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8eb62838b336d59cfc2d4ed1288f13f4c996bbede636a2ff5b4a9f0d800879d
|
|
| MD5 |
54ab945cbcac1f9115fdb30d6a3a758c
|
|
| BLAKE2b-256 |
5fc4bf8037ffd3ec5bbbac42201eff4f0173176be250224d9409044ba31611fd
|