nwm_region_mgr.formreg.process_config.FormulationRegionalizationProcessor#
- class nwm_region_mgr.formreg.process_config.FormulationRegionalizationProcessor(config_file, config_schema=FieldInfo(annotation=NoneType, required=True), sample_size=None)[source]#
Formulation regionalization processor.
Attributes
divide_id_nameId_name for divide from the config.
donor_gage_fileGet the donor gage file path from the configuration.
donor_gagesGet the donor gage DataFrame.
donor_id_nameId_name for donor gage from the config.
drainage_area_nameId_name for drainage_area from the config.
gage_crosswalkGet the gage crosswalk DataFrame.
gage_crosswalk_fileGet the gage crosswalk file path from the configuration.
gage_id_nameId_name for gage from the config.
huc12_id_nameId_name for huc12 from the config.
load_and_process_configLoad, validate, and process the configuration files.
vpu_id_nameId_name for vpu from the config.
Methods
expand_config_for_vpu(vpu)Expand the config to include VPUs (e.g., needed for all donors).
get_output_file_path(output_section[, vpu, ...])Get the output file name from the output configuration.
get_vpu_gdf()Get the GeoDataFrame for the current vpu.
run_formreg_for_vpu(vpu, formulation_file)Run the formulation regionalization process for a given VPU.
set_logging()Set up logging based on the configuration.
set_vpu(vpu)Set the vpu.
set_vpu_gdf()Set the GeoDataFrame for the current vpu.
timing_block(step_str)Context manager for timing code execution.
validate_files()Validate that all file paths exist and required columns are present in the files.