GloFASRiverDataset#
- class roms_tools.datasets.river_datasets.GloFASRiverDataset(*, filename: str | ~pathlib.Path | list[str | ~pathlib.Path], COAST_SNAP_BUFFER_KM: float = 50.0, DOMAIN_EDGE_BUFFER: int = 20, start_time: ~datetime.datetime, end_time: ~datetime.datetime, dim_names: dict = <factory>, var_names: dict = <factory>, opt_var_names: dict = <factory>, climatology: bool = False)#
River discharge dataset from GloFAS v4.0.
Expects a NetCDF file preprocessed using the GloFAS Large-scale Drainage Direction (LDD) algorithm, which places river mouths on coastal cells. Time is encoded as CF-compliant datetime64 and decoded directly.
- Variable name mappings:
latitude:
lat_moulongitude:
lon_mouflux:
FLOW(m³/s)ratio:
ratio_m2sname:
riv_name
Methods
Time is CF-compliant datetime64 — decode directly.
Attributes
GloFASRiverDataset.COAST_SNAP_BUFFER_KMGloFASRiverDataset.DOMAIN_EDGE_BUFFERGloFASRiverDataset.name_prefixPrefix prepended to GloFAS river names, stripped back off when naming synthetic
overlap_rivers.GloFASRiverDataset.dim_namesGloFASRiverDataset.var_namesGloFASRiverDataset.opt_var_namesGloFASRiverDataset.filenameGloFASRiverDataset.start_timeGloFASRiverDataset.end_timeGloFASRiverDataset.ds