hydromt.io.open_ncs#
- hydromt.io.open_ncs(filename_template: str | Path, root: Path, **kwargs) Dict[str, Dataset] [source]#
Read netcdf files at <root>/<file> and return as dict of xarray.Dataset.
- Parameters:
filename_template (
str
) – Filename relative to model root, may contain wildcardsroot (
Path
) – The path to the model directory in which to write**kwargs – Additional keyword arguments that are passed to the xr.open_dataset function.
- Returns:
dict of xarray.Dataset. Don’t forget to close them when you’re done!
- Return type:
Dict[str
,xr.Dataset]