hydromodpy.results.zarr_store.zarr_writer#
Write-side concerns for SimulationZarr.
Owns every write_* entry point: mesh, time, CRS, fields, forcing
timeseries and raster, geographic rasters, and ACDD root attrs.
Also owns the chunk / sharding decisions and the CF attribute
composition that flows from the registry.
Helpers take the live SimulationZarr so the module stays free
of hidden state and can be unit-tested in isolation.
Functions
|
Stamp the registry-derived CF attrs onto an existing field array. |
|
Compose CF attrs for a field straight from the registry + _FillValue. |
|
Pre-create a directory node under |
|
Return the canonical registry field name for |
|
Pick a shard shape when the total array size crosses the 100 MiB trigger. |
|
Compose and persist ACDD root attrs. |
|
Persist the CF grid-mapping CRS variable. |
|
Append one timestep slice to |
|
Persist a gridded forcing field under |
|
Persist a per-station forcing timeseries under |
|
Persist a per-run raster under |
|
Write the UGRID-1.0 mesh group, including the optional topography array. |
|
Persist the CF time coordinate. |
|
Write the mesh topography (and optional z_interfaces) only. |