A Python package developed to support EMMP tasks
Project description
Installation
pip install fastmikeio
Notes
- The package currently works with the following dfsu formats:
- Dfsu 2D Horizontal
- Dfsu 3D Sigmal Layer
- Dfsu Vertical Plane
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 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
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 Distribution
pyemmp-0.0.16.tar.gz
(118.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
pyemmp-0.0.16-py3-none-any.whl
(135.1 kB
view details)
File details
Details for the file pyemmp-0.0.16.tar.gz.
File metadata
- Download URL: pyemmp-0.0.16.tar.gz
- Upload date:
- Size: 118.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 |
e67d16db2a280fb4c547f92c3a74f3d4b43c90ddd5c4a6f45c26be79dde54e9a
|
|
| MD5 |
db8ba18fd8aac53155fa63cdd4397f02
|
|
| BLAKE2b-256 |
224104d446e085a961ea29f4b56aedcecaaae0cba9211825c0aacb6fdf2e1d71
|
File details
Details for the file pyemmp-0.0.16-py3-none-any.whl.
File metadata
- Download URL: pyemmp-0.0.16-py3-none-any.whl
- Upload date:
- Size: 135.1 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 |
ca6346eddf651eb3a8e7adc3d5359b717d2fe63f2e95422380fcde8183b0dab6
|
|
| MD5 |
f01d6bd2152c413c5a073b00e194bccf
|
|
| BLAKE2b-256 |
453fa47d63c0cdf393c912c7a85584999fc84f797337c34f3c5d533172c4827c
|