nwm_region_mgr.formreg.select_formulation.select_formulation_all#

nwm_region_mgr.formreg.select_formulation.select_formulation_all(config, vpu, df_score, gdf_vpu, cost_dict=None)[source]#

Select formulation for all catchments in the VPU.

Return type:

DataFrame

Parameters:
  • config – cs.Config Configuration object containing settings for the regionalization.

  • vpu – str Vector Processing Unit (VPU) for which to select formulations.

  • df_score – pd.DataFrame DataFrame containing summary scores for each formulation and calibrated basin.

  • gdf_vpu – gpd.GeoDataFrame GeoDataFrame of the VPU polygons, used for spatial operations where needed.

  • cost_dict – Optional[dict], optional Dictionary containing costs for each formulation, by default None.

Returns:

pd.DataFrame

DataFrame with selected formulations and their scores.