urclib.calculate_pe_score
Create lists for unique components and each corresponding dataset
Module Contents
Functions
|
Pull in all indices rasters from the workspace, specifically: |
|
Run the URC method for calculating the PE score for DA and/or DS. |
- urclib.calculate_pe_score.collect_index_rasters(inworkspace)
- Pull in all indices rasters from the workspace, specifically:
ld_inds
lg_inds
sd_inds
ud_inds
sa_inds (optional)
- Parameters:
inworkspace (UrcWorkspace) –
- Returns:
The loaded indices rasters.
- Return type:
- urclib.calculate_pe_score.run_pe_score(gdb_path, in_workspace, out_workspace, do_da=True, do_ds=True, rasters_only=False, post_prog=None)
Run the URC method for calculating the PE score for DA and/or DS.
- Parameters:
gdb_path (str) – Path to the .gdb (or .sqlite) file to evaluate.
in_workspace (UrcWorkspace) – Holds all the input filepaths.
out_workspace (UrcWorkspace) – Holds all the output filepaths.
do_da (bool) – If True, include DA analysis.
do_ds (bool) – If True, include DS analysis.
rasters_only (bool) – If true, exit after all intermediate rasters have been created, skipping the actual analysis.
post_prog (function, optional) – Optional progress update function. Will be pass a value from 0 to 100 for progress of current analysis (da or ds).
- Raises:
ValueError – If both do_da and doDS are False.