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.4.tar.gz
(14.8 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.4.tar.gz.
File metadata
- Download URL: fastmikeio-0.0.4.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cea12ff38ef830749e092251de651c857c94c4433ffb19b238bba59621add9d
|
|
| MD5 |
f1ca3aadebc73aa73b53bfff558491c1
|
|
| BLAKE2b-256 |
bb6900d4e7f7ba060bc4af1afb9b235ae72e012ded3c5683ed6ab49a1dbc5987
|
File details
Details for the file fastmikeio-0.0.4-py3-none-any.whl.
File metadata
- Download URL: fastmikeio-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.8 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 |
a6af036ea7706531ff709d159ca95afacbe2cb4d67505f7593b70eb38c038aae
|
|
| MD5 |
b773d26a782b5388b063fde16aca6dd9
|
|
| BLAKE2b-256 |
e0b735c6b55b0e595f1af43f155e11a257f1cd56e9bb04bc0612ed4ffa50eb96
|