dycove.utils.model_loader.ANUGAMapLoader

class dycove.utils.model_loader.ANUGAMapLoader(*args, **kwargs)[source]

Loader for ANUGA hydrodynamic and DYCOVE vegetation output files.

Loads data from ANUGA .sww NetCDF files and DYCOVE .npz vegetation cohort files.

Notes

  • ANUGA stores variables at cell centroids, but the .sww format provides only vertex coordinates; centroids are computed on first load and cached.

  • Subsequent calls reuse saved x and y centroid coordinate arrays because it is an intensive computation for large grids.

  • Velocity is derived from stored quantities Depth and Depth-averaged momentum.

Returns:

Dictionary of NumPy arrays with keys: 'X', 'Y', 'Bathymetry', and (if applicable) 'WSE', 'Depth', 'Velocity', or vegetation fields.

Return type:

dict

__init__(*args, **kwargs)[source]

Methods

__init__(*args, **kwargs)

check_final_index(index)

Raises error if final plot time exceeds simulation length

load(hydro_i, ets, eco_year)

check_final_index(index)

Raises error if final plot time exceeds simulation length