HARPgroup / meta_model

0 stars 0 forks source link

meta model components #14

Open jdkleiner opened 1 year ago

jdkleiner commented 1 year ago

Model components

river module (steps and plugins):

prep

Component Description Link
00_init
01_run_rug
03_special_action
04_convert_hsp2
05_ann_load
06_ave_load
08_etm
09_runoff_dsn

run

Component Description Link
00_init create tempdir if it doesn’t exist
02_confluence handle confluence
03_upstream make stream wdms: copy the eos wdm then add upstream to it
04_ps_sep_div
05_compare compare calibration and scenario loads input to this river. modify comparison file
07_get_uci
08_run_river This is what actually runs the river simulation (see notes below)
09_hydr_for_sed Runs export_hsp_h5.R to export the hydr table as a csv and runs hsp_index_conversion.R to add date, year etc. columns to hydr csv export_hsp_h5.R hsp_index_conversion.R
10_hydr_to_wdm Runs csv_export_wdm_format.R to export the OVOL3 column from the hydr csv as a WDM-format csv csv_export_wdm_format.R
12_res_typeII Apply SPARROW Reservoir (Type II) Efficiency
13_scour_org
99_tidy_up

link

Component Description Link
01_export_ext Runs export_hsp_h5.R 3 times to export demand and point source data (divr, diva, and ps) as individual csvs export_hsp_h5.R
02_join_hydr Uses join_col.R 3 times to join each of the above mentioned data columns to the hydr csv join_col.R
03_convert_hydr Runs hsp_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 wd hsp_hydr_conversion.R
99_cleanup Stashes the 2 hydr csv files XXXX_hydr.csv & XXXX_hydrd_wy.csv

analyze

Component Description Link
00_init Creates the temp directory and export directories for hydr files and images/figures if they don't exist
04_hydr_metrics Runs hsp_hydr_analysis.R to calculate metrics and export them to VAHydro hsp_hydr_analysis.R
05_hydr_plots Runs hsp_hydr_plots.R to generate figures and export them to VAHydro hsp_hydr_plots.R
99_cleanup Moves csvs to the export directory and hydr folder

How to run the river simulation:

Helpful tools:

jdkleiner commented 1 year ago

Investigating Analytics Scripts

meta_model

rburghol commented 1 year ago

This is great stuff @jdkleiner @glenncampagna I forsee 04_analysis replaced by "04_hydr_metrics" and "05_hydr_plots" or something like that

jdkleiner commented 1 year ago

@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? image