pywatershed.analysis.compare_hru_runs

pywatershed.analysis.compare_hru_runs#

pywatershed.analysis.compare_hru_runs(shapefile_path, variable_names, run_directories, **kwargs)[source]#

Convenience function to quickly create and display an HRU comparison app.

Parameters:
  • shapefile_path (str or Path) – Path to shapefile containing HRU polygons

  • variable_names (list of str) – List of variable names to compare

  • run_directories (dict) – Dictionary mapping run names to directory paths

  • **kwargs

    Additional keyword arguments passed to HRUComparisonPanel, including:

    • verbosebool, optional

      Whether to print diagnostic information during initialization (default: True). Set to False to suppress output messages.

Returns:

pn.Column – Panel application

Examples

>>> app = compare_hru_runs(
...     shapefile_path="model_nhru.shp",
...     variable_names=["prcp", "tmean"],
...     run_directories={"Run1": "/path/to/run1", "Run2": "/path/to/run2"},
... )
>>> app.show()