hydromt_wflow.read_csv_results#

hydromt_wflow.read_csv_results(fn: str | Path, config: Dict, maps: Dataset) Dict[source]#

Read wflow results csv timeseries and parse to dictionnary.

Parses the wflow csv results file into different hydromt.GeoDataArrays, one per column (csv section and csv.column sections of the TOML). The xy coordinates are the coordinates of the station or of the representative point of the subcatch/area. The variable name in the GeoDataArray corresponds to the csv header attribute or header_map when available.

Parameters:
  • fn (str) – Path to the wflow csv results file.

  • config (dict) – wflow.toml configuration.

  • maps (xr.Dataset) – wflow staticmaps.nc dataset

Returns:

csv_dict – Dictionnary of hydromt.GeoDataArrays for the different csv.column section of the config.

Return type:

dict