Skip to main content

Installation

pip install fastmikeio

Notes

  1. The package currently works with the following dfsu formats:
  • Dfsu 2D Horizontal
  • Dfsu 3D Sigmal Layer
  • Dfsu Vertical Plane

Features

  1. 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)
  1. 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)
  1. 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)

Metadata

Release files for pyEMMP 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyEMMP 0.0.19
File Size Uploaded
pyemmp-0.0.19.tar.gz 119.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyEMMP 0.0.19
File Interpreter ABI Platform
pyemmp-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 254.6 kB

Release files / pyemmp-0.0.19.tar.gz

Download URL pyemmp-0.0.19.tar.gz
Size 119.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d078bd935fe51c91557c60f30fa135e36759561ee1a93cae980a4ecc6f89b86c
BLAKE2b-256 checksum
How to use checksums
edfeb75128911dce6a97804d6aadb71a7eeef8c1ae35394d4a8b7172c16f1476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pyemmp-0.0.19-py3-none-any.whl

Download URL pyemmp-0.0.19-py3-none-any.whl
Size 135.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
100454d420783626f4361b281652ec6d10f342b9e62f70ced69e9cdaedde12c4
BLAKE2b-256 checksum
How to use checksums
09a9caaff960eb2bab369350231e56fa1a6e7051c8ea2e0ab3274f305a9da298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 release files

0.0.18

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page