-
Follow the instructions in the
SCEPTERrepo to set up fortran and other SCEPTER dependencies on your machine. -
Install python package dependencies in the
ew-workflows/environment.yamlfile.
-
Update the lines to append your
ew-workflows/run_scepterpath in the following scripts within theSCEPTERrepository.rock_buff_minPH_multiyear.pytunespin_4_newton_inert_buff_v2_defaultdict.pysinglerun_postproc_detached.pyrock_app_singleRun-szn.pyrock_buff_dust-ts_multiyear.py
-
Update the lines to append your
ew-workflows/run_scepterpath in the following scripts within theew-workflows/scripts/scepterdirectory.*/setup/batch/make_batch_input_grainsize+apprate.py*/setup/batch/make_batch_input_grainsize+apprate_multiyear.py*/setup/batch/make_batch_input_grainsize+apprate_cdrPot.py
-
Update the default directories for the following functions (or update the code that runs the functions to input the correct directory).
- in
ew-workflows/run_scepter/argo_helper_fxns.pymaindirinrun_multiplefunction should be/path/to/your/ew-workflowsmaindirinretry_failed_runsfunction should be/path/to/your/ew-workflows
- in
ew-workflows/scripts/scepter/run/run-multiple.pymaindirinahf.retry_failed_runscall should be/path/to/your/ew-workflows
- in
-
Open
ew-workflows/scripts/scepter/setup/batch/make_batch_input_grainsize+apprate.py.- This file defines values that will override the defaults defined in the
SCEPTER/defaults/dict_singlerun.py
- This file defines values that will override the defaults defined in the
-
Update system path line if you haven't already.
-
Update the
savepath_batchvariable to yourew-workflows/inputs/scepter/batch. -
Within
const_dict(dictionary of values held constant for all batch simulations) update youraws_saveandaws_bucketoptions. Ifaws_save = Nonethen the results will be saved locally inSCEPTER/scepter_output/<runname>.
The following sections only apply if you are using Argo workflows to run batches of SCEPTER simulations.
-
Open
ew-workflows/inputs/scepter/params/batch-meanAnnliming_fert_fixedRate-base.yamland update the following directories (you should only have to update these directories once):control-script-dirbatch-input-dirmodel-dir
-
Update the
batch-inputvariable to the name of the batch file you created in the last step. -
Update the
default-dictvariable to the name of the default dictionary you want to use inSCEPTER/defaults/dict_singlerun.py(or review the current default dictionary to make sure it's in line with what you want).
Note: we had the most success with argo if we imposed a delay (bleed_delay in the run_multiple function in ew-workflows/run_scepter/argo_helper_fxns.py) between each run being submitted.
-
In terminal, navigate to
ew-workflows/scripts/scepter/run. Activate the virtual environment you created with theew-workflows/environment.yamlfile. -
Open
run-multiple.pyand confirm therun_parsvariable is set to thebatch-*.yamlfile you updated previously. -
run
python3 run-multiple.py
-
Open
ew-workflows/scripts/scepter/process/cdr_feedstock_compare-apprate+psize.ipynb. -
Update
sys.path.appendto yourew-workflows/run_scepterpath. -
Update
dur,fertLevel,dustsp,sitename,multiyear*,tag*, andversion*to construct the appropriate values to generate the batch names and filenames. -
Update the
outdir,savepath, andcsv_locto the appropriate paths.