osmose.spatial_series¶
Extract a single grid cell’s value over time from a spatial NetCDF output.
The Python engine writes spatial outputs as (time, species, lat, lon) arrays
({prefix}_spatial_biomass_Simu{i}.nc etc., see
osmose.engine.output.write_outputs_netcdf_spatial) when
output.spatial.enabled=true. cell_timeseries reads one cell’s trajectory
out of such a file without materialising the whole cube.
NaN marks land cells (per the writer’s nan_semantics attribute); ocean cells
with no schools in the averaging window hold 0.0. Land cells are returned as
NaN so callers can show an empty state rather than a flat-zero line.
This module is part of the core library and deliberately does not import from
ui/ — the dimension-name detection sets are defined locally (the UI’s
grid_helpers has parallel constants for its own use).
Functions
|
Time series of one grid cell from a spatial NetCDF variable. |
|
Per-cell time series from an already-open |
|
Return |
|
|
|
A 2-D |