dycove.utils.model_loader.DFMMapLoader
- class dycove.utils.model_loader.DFMMapLoader(*args, **kwargs)[source]
Loader for DFM hydrodynamic and DYCOVE vegetation output files.
Loads data from DFM
*_map.ncNetCDF file and DYCOVE.npzvegetation cohort files.Notes
Automatically detects dynamic morphology (
'mesh2d_mor_bl').Caches variables for efficient access.
- Returns:
Dictionary of NumPy arrays with fields among:
'X','Y','Bathymetry','WSE','Depth','Velocity', and vegetation fields.- Return type:
dict
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