Open jdkleiner opened 1 year ago
meta_model
summarize_river.R
deq2:/opt/model/p6/vadeq/run/export/summarize_river.R
meta_model/models/hspf_cbp6/river/analyze/02_hydr
LinkwaterSupplyModelNode.R
om/R/summarize/waterSupplyModelNode.R
summarize_river.R
has been split into 2 separate scripts: Issuesummarize_values.R
HARParchive/HARP-2022-Summer/AutomatedScripts/summarize_values.R
Linksummarize_figures.R
HARParchive/HARP-2022-Summer/AutomatedScripts/summarize_figures.R
Linkhsp_hydr_analysis.R
HARParchive/HARP-2022-Summer/AutomatedScripts/hsp_hydr_analysis.R
Linkmeta_model/models/hsp2_cbp6/river/analyze/04_analysis
Linksummarize_values.R
& summarize_figures.R
to be added to: meta_model/models/hsp2_cbp6/river/analyze/04_analysis
?? Linksummarize_river.R
in the hspf directory with these 2 new scripts? - YesThis is great stuff @jdkleiner @glenncampagna I forsee 04_analysis replaced by "04_hydr_metrics" and "05_hydr_plots" or something like that
@rburghol @glenncampagna Thanks Rob! Thinking we should also do the same for the hspf_cbp6 model directory meta_model/models/hspf_cbp6/river/analyze/
adding "04_hydr_metrics" and "05_hydr_plots" for running the latest-greatest scripts?
ALSO one more thing we need to decide, I've been going through and manually testing the HARP scripts, looks like we diverged at some point between storing these as om_model_element
vs om_water_model_node
example below. Which do we want to use moving forward?
om_water_model_node
Model components
river module (steps and plugins):
prep
run
export_hsp_h5.R
to export the hydr table as a csv and runshsp_index_conversion.R
to add date, year etc. columns to hydr csvcsv_export_wdm_format.R
to export the OVOL3 column from the hydr csv as a WDM-format csvsource $META_MODEL_ROOT/models/$MODEL/model_config
Linksource $MODEL_ROOT/config/control/script/${scenario}.con
jdk@deq2:/opt/model/p6/vadeq/config/control/script$ cat hsp2_2022.con
HSP_EXEC
variable:set HSP_EXEC = /usr/local/bin/hsp2
Note this can also point tohspf
h5
variable:set h5 = $seg'.h5'
$HSP_EXEC run $h5
hsp2 run PL3_5250_0001.h5
link
export_hsp_h5.R
3 times to export demand and point source data (divr, diva, and ps) as individual csvsjoin_col.R
3 times to join each of the above mentioned data columns to the hydr csvhsp_hydr_conversion.R
to process demand, withdrawal, point source etc., and exports hydr csvs as hourly data for the whole timeframe and daily data for water-year. Script also substitutes demand for withdrawal for hspf hydr csvs as a work-around to not having needed columns for wdXXXX_hydr.csv
&XXXX_hydrd_wy.csv
analyze
hsp_hydr_analysis.R
to calculate metrics and export them to VAHydrohsp_hydr_plots.R
to generate figures and export them to VAHydroHow to run the river simulation:
run_model [model] [scenario] [segment] [work_path] [modules] [run_steps] [script]
run_model hsp2_cbp6 hsp2_2022 PU0_6080_5620 auto river run 08_run_river
Helpful tools:
jdk@deq2:/opt/model/p6/vadeq$ cat /usr/local/bin/get_config
cbp get_config hsp2_2022 river