You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/csh
# Run post-process extract routine
set scenario=$1
set segment=$2
set seg=$segment # this is for backwards compatibility with scripts source
set tempdir=$3
# Load configuration, includes such things as CBP_EXPORT_DIR and MODEL_VERSION_CODE
source $META_MODEL_ROOT/models/$MODEL/model_config
cd $tempdir
if (! $?MODEL_VERSION_CODE) then
echo "Variable MODEL_VERSION_CODE is not defined. Cannot push results to REST" >> problem
exit
endif
# todo: add the call to run the river hsp2 summary script here
echo "Notice(analyze): Rscript $MODEL_ROOT/run/export/hsp_hydr_analysis.R $seg $scenario $CBP_EXPORT_DIR/river/$scenario/hydr/ $CBP_EXPORT_DIR/river/$scenario/hydr/images/ $MODEL_VERSION_CODE"
Rscript $MODEL_ROOT/run/export/hsp_hydr_analysis.R $seg $scenario $CBP_EXPORT_DIR/river/$scenario/hydr/ $CBP_EXPORT_DIR/river/$scenario/hydr/images/ $MODEL_VERSION_CODE
The text was updated successfully, but these errors were encountered:
model
must have 2modules
definedsteps
: prep, run, post, analyzemodels/[model name]/river/
models/[model name]/river/prep/
models/[model name]/river/run/
models/[model name]/river/post/
models/[model name]/river/analyze/
models/[model name]/land/
models/[model name]/land/prep/
models/[model name]/land/run/
models/[model name]/land/post/
models/[model name]/land/analyze/
step
can have 0 to N sub-module scripts.scenario
,segment
, andtempdir
tempdir
is the runtime directoryMODEL_ROOT
MODEL_BIN
META_MODEL_ROOT
SCRIPT_DIR
MODEL
START_YEAR
END_YEAR
csh
can access detailed model configuration info by doing this:source $META_MODEL_ROOT/models/$MODEL/model_config
run
step of theriver
module of the modelhsp2_cbp6
, i.e. implementation of the CBP6 model inhsp2
:models/hsp2_cbp6/river/run/00_init
models/hsp2_cbp6/river/run/02_confluence
models/hsp2_cbp6/river/run/03_upstream
models/hsp2_cbp6/river/run/04_ps_sep_div
models/hsp2_cbp6/river/run/05_compare
models/hsp2_cbp6/river/run/07_get_uci
models/hsp2_cbp6/river/run/08_run_river
models/hsp2_cbp6/river/run/09_synch_wdm
models/hsp2_cbp6/river/run/10_res_typeII
models/hsp2_cbp6/river/run/11_scour_org
Example
analyze
module scriptFrom https://github.com/HARPgroup/meta_model/blob/main/models/hsp2_cbp6/river/analyze/01_hydr
The text was updated successfully, but these errors were encountered: