Execute¶
-
class
capsis.Execute(path_to_run_file, subset_percent)[source]¶ Bases:
objectThis class executes capsis according to the configuration from the
RunConfigclass. Capsis execution is platform agnostic. It also conditionally reduces the amount of fuels that will be tracked by WFDS and populates the fuels variable used to configure the WFDS run.Parameters: - path_to_run_file (string) – Path and file name of capsis run file
- subset_percent (float) – Percentage of fuels to leave OUTPUT_TREE=.TRUE.
-
read_fuels()[source]¶ Reads capsis fuels file and populates the fuels variable which will be used to configure the WFDS run.
-
subset_fuels()[source]¶ This is a post-capsis run method that sets a user defined percentage of fuels (shrubs, herbs and trees) OUTPUT_TREE parameter to FALSE in the capsis_fuels.txt file. This effects what fuels WFDS tracks (not what it models - it still models all fuels) and should reduce the computing resources needed to run WFDS and SMOKEVIEW. It reads the output file from capsis (capsis_fuels.txt) and updates the OUTPUT_TREE parameter for a random selection of fuels. It also creates a copy of the original files renamed capsis_fuels_raw.txt for posterity.