nwm_region_mgr.utils.config_utils.BaseConfigProcessor#

class nwm_region_mgr.utils.config_utils.BaseConfigProcessor(config_file, config_schema=FieldInfo(annotation=NoneType, required=True), sample_size=None)[source]#

Base configuration processor.

Attributes

divide_id_name

Id_name for divide from the config.

donor_gage_file

Get the donor gage file path from the configuration.

donor_gages

Get the donor gage DataFrame.

donor_id_name

Id_name for donor gage from the config.

drainage_area_name

Id_name for drainage_area from the config.

gage_crosswalk

Get the gage crosswalk DataFrame.

gage_crosswalk_file

Get the gage crosswalk file path from the configuration.

gage_id_name

Id_name for gage from the config.

huc12_id_name

Id_name for huc12 from the config.

load_and_process_config

Load, validate, and process the configuration files.

vpu_id_name

Id_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.

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.