Delft3D_plot
Python tool to postprocess and plot Delft3D (D-Flow FM / SMT) results. Version 1 covers 2D maps (map2d) and river-km statistics (river_km_statistics).
Status: v1 is implemented locally (map2d, river-km statistics, map1d, measurements, and the native
prepare/process/runpipeline). d3dplot reads model input with its own readers and does not depend on HYDROLIB-core at run time. The architecture plan holds the design and status; the synthetic SMT test case generator is available for development.
Goals
- Script-based workflow (Python script or YAML + CLI).
- Process first, plot later: raw results are processed once into a cache, and figures are made (and remade) from that cache.
- Validate all input up front before any heavy processing starts.
- Parallel processing and plotting (local process pool; SLURM job arrays on Linux clusters).
- Reads model input with its own readers (no run-time dependency on HYDROLIB-core) and reuses dfm_tools and xugrid for model output instead of re-implementing them.
- Runs on Linux and Windows.
The functional reference is the Matlab tool D3D_plot in OpenEarthTools. This is not a one-to-one translation.
How model output is assembled
Partitioned D-Flow FM output contains one map file per partition. Each file
contains local face and edge numbers, including ghost cells. Before values are
processed, d3dplot creates cache/grid.nc and cache/merge_plan.nc.
grid.nc contains the combined mesh geometry. merge_plan.nc contains the
lookup needed to place values from the partition files into that combined mesh:
local value in a partition
|
| owned_local
v
global position in the combined grid
|
| global_pos
v
one value in the output array
The plan also stores the equivalent lookup for edges, including edge
orientation. It stores indexes and mappings only; it does not store bed levels,
other model variables, or times. Those remain in the model map files and in
cache/times.nc.
Sub-runs and plans
An SMT simulation has several sub-runs, usually representing successive model periods or restarts. The simulation has one mapping recipe between local partition indices and its combined global grid. Every sub-run uses that same simulation-wide recipe:
SMT with one common grid:
sub-runs: [0, 1, 2, 3]
merge plan: one plan in merge_plan.nc
The grid and merge plan are built from sub-run 0. Time and morft metadata are
still read from every sub-run. Different simulations have separate output
roots and therefore separate grid.nc and merge_plan.nc files.
A non-SMT (plain FM) simulation is represented as one sub-run:
sub-runs: [0]
merge plan: one plan in merge_plan.nc
If that plain-FM run is partitioned, the plan still contains one entry for each map partition. If it has one unpartitioned map file, the mapping is effectively an identity mapping: local face 0 goes to global face 0, local face 1 goes to global face 1, and so on.
See the output-store documentation and the architecture plan for the cache layout and implementation details.
Documentation
- User guide
- From Matlab
D3D_plot - Gallery
- Maintainer release guide
- Reference
- Project documentation
- Architecture proposal
- Synthetic SMT test case generator
- Contributing guide
Development workspace
Delft3D_plot.code-workspace opens this repository together with sibling checkouts of the reference repositories:
checkouts/
├─ Delft3D_plot/ (this repository)
├─ oet_matlab/ https://github.com/openearth/matlab-tools
├─ HYDROLIB-core/ https://github.com/Deltares/HYDROLIB-core (reference only)
└─ dfm_tools/ https://github.com/Deltares/dfm_tools
Licence
Metadata
Release files for d3dplot 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| d3dplot-0.2.0.tar.gz | 898.1 kB | With provenance | Details for d3dplot-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| d3dplot-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for d3dplot-0.2.0-py3-none-any.whl |
Total release size: 1.3 MB
Release files / d3dplot-0.2.0.tar.gz
| Download URL | d3dplot-0.2.0.tar.gz |
|---|---|
| Size | 898.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
443131fb6f1c575239f7fbd37afc8071888ad1e874e1353fa0b8dcdbc4bc1dae
|
|
BLAKE2b-256 checksum How to use checksums |
033972a614fbf019a0bce210b2d4a1d493ca776b5ff24452fb800c2f61a24b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / d3dplot-0.2.0-py3-none-any.whl
| Download URL | d3dplot-0.2.0-py3-none-any.whl |
|---|---|
| Size | 372.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cd819628266d3d9ef5eeb95f7ff69146ba2f3d6aa5a084adcf81d651c11a960
|
|
BLAKE2b-256 checksum How to use checksums |
9b52616a1b6cb4d5cb319ea1b1d0a4388d55c66d5593400e7c1734cecd0c2a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for d3dplot 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for d3dplot-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.