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 fastmikeio 0.0.5

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

Source distribution (sdist)

Source distribution for fastmikeio 0.0.5
File Size Uploaded Provenance Actions
fastmikeio-0.0.5.tar.gz 14.9 kB Without provenance Details for fastmikeio-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastmikeio 0.0.5
File Interpreter ABI Platform Actions
fastmikeio-0.0.5-py3-none-any.whl Python 3 none any Details for fastmikeio-0.0.5-py3-none-any.whl

Total release size: 30.7 kB

Release files / fastmikeio-0.0.5.tar.gz

Download URL fastmikeio-0.0.5.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5be0a9cddf3eecb1f1d06f2f6cc8f36eae776ff3166fce442fa3280bf8ad490d
BLAKE2b-256 checksum
How to use checksums
5ec006d57519653bc1a6f999c2d59cb00dcfd6fbdcaa7a2c7dbb3bc7878ab435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / fastmikeio-0.0.5-py3-none-any.whl

Download URL fastmikeio-0.0.5-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bffe85126ad1cbe4ddafed13b573c56521b8c4fee348f386eade6389a74ba7fa
BLAKE2b-256 checksum
How to use checksums
6d166e1a7228776b8018f35842e0e73edf8e1aad96a2f79e21b38f376b1b90e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for fastmikeio 0.0.5

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.

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