Open juliabruneau opened 2 years ago
This is a super useful piece of documentation - thanks!
Name: hspf_flow_analysis.R Generates summary statistics of hspf outflow values.
Use: Rscript .../hspf_flow_analysis.R [river seg] [scenario] [file path] [model version]
Ex: Rscript HARParchive/HARP-2022-Summer/AutomatedScripts/hspf_flow_analysis.R OR1_7700_7980 p532sova_2021 /media/model/p532/out/river/p532sova_2021/stream/ cbp-5.3.2
Output:
Creating a hydr table from hspf files with create_hspf_hydr.R
Use: Rscript .../create_hspf_hydr.R [input file path] [output file path]
Ex: Rscript HARParchive/HARP-2022-Summer/AutomatedScripts/create_hspf_hydr.R /media/model/p532/out/river/p532sova_2021/stream/OR1_7700_7980_0111.csv /media/model/p532/out/river/p532sova_2021/stream/OR1_7700_7980_hydr.csv
Output:
juliasb@deq2:/media/model/p532/out/river/p532sova_2021/stream$ head OR1_7700_7980_hydr.csv
"index","ROVOL","Qout"
1984-01-01 00:00:00,13.5174847,163.56156487
1984-01-01 01:00:00,13.2851572,160.75040212
1984-01-01 02:00:00,13.0634632,158.06790472
1984-01-01 03:00:00,12.8519182,155.50821022
1984-01-01 04:00:00,12.6500444,153.06553724
1984-01-01 05:00:00,12.4573774,150.73426654
1984-01-01 06:00:00,12.2734709,148.50899789
1984-01-01 07:00:00,12.0977278,146.38250638
1984-01-01 08:00:00,11.9294224,144.34601104
batch_hspf_hydr.bat runs the Rscript for all river segments in a basin:
Use: bash ~/.../batch_hspf_hydr.bat [scenario] [basin]
Ex: bash ~/HARParchive/HARP-2022-Summer/AutomatedScripts/batch_hspf_hydr.bat p532sova_2021 JL2_6850_6890
Output:
csv was created: JL1_6770_6850_hydr.csv
csv was created: JL2_6850_6890_hydr.csv
@rburghol I promised to push these new scripts to GitHub, since I lost wifi on Friday afternoon.
@juliabruneau - just want you to know I referred to this reference yet again today and it saved me a ton of time. Awesome stuff, thanks!
Uses the scripts above.
SUMMARY - SUMMER 2022
hsp2 model runs:
To be implemented in run_river.csh:
To be implemented in run_land.csh:
Other scripts:
Use:
Rscript (path to file) [argument1] [argument2] [...]
Locate filesUPDATED SUMMARY - FALL 2022 & WINTER 2023
FTABLES
In issue: https://github.com/HARPgroup/HARParchive/issues/331
SUBSHED CREATION
In issue: https://github.com/HARPgroup/cbp_wsm/issues/85
.H5 TO .CSV (CORRECTLY FORMATTED FILES)
In issue: https://github.com/HARPgroup/HARParchive/issues/541
DATA SUMMARY/ANALYSIS
In issue: https://github.com/HARPgroup/HARParchive/issues/556