Open rburghol opened 1 year ago
York/North Anna
basin=YP3_6670_6720
scenario=subsheds
Chickahominy
0000
watershed work ok in basingen.csh
?_0001
segment?
0001
segment. chick
group.
basin=chick
scenario=subsheds
met_scen=`cbp get_config $scenario land MET`
#Check the met WDM status:
cbp check_met $met_scen $basin
#Get the prad dataset for the land (or river) simulation of interest
prad_scen=`cbp get_config $scenario land "PRECIP ATMOS DEPOSITION"`
#Check the met WDM status:
cbp check_prad $prad_scen $basin
# set ENV variables
. hspf_config
# run the land
segs=`cbp get_landsegs $basin`
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
echo "sbatch /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
segs=`cbp get_riversegs $basin`
for i in $segs; do
/opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
All of James:
basin=JL7_7070_0001
scenario=subsheds
met_scen=`cbp get_config $scenario land MET`
#Check the met WDM status:
cbp check_met $met_scen $basin
#Get the prad dataset for the land (or river) simulation of interest
prad_scen=`cbp get_config $scenario land "PRECIP ATMOS DEPOSITION"`
#Check the met WDM status:
cbp check_prad $prad_scen $basin
# set ENV variables
. hspf_config
# run the land
segs=`cbp get_landsegs $basin`
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
echo "sbatch /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
segs=`cbp get_riversegs $basin`
for i in $segs; do
/opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
Rappahannock:
./run/resegment/add_sub_watershed.bat RU2_6090_6220_whites_run RU2_6090_6220 cbp-6.1 subsheds 0.9
riverseg=RU2_6091_6090
Rscript run/resegment/ftable_creation.R $riverseg manual vahydro-1.0 "/opt/model/p6/vadeq/input/param/river/vahydro_2022/ftables/" 1.13 8395.2 3 0.01540171
mkdir tmp/scratch/rwb
/opt/model/meta_model/run_model hsp2_cbp6 $scenario $riverseg tmp/scratch/rwb river prep 01_run_rug
. hspf_config
basin=RU5_6030_0001
scenario=subsheds
met_scen=`cbp get_config $scenario land MET`
cbp check_met $met_scen $basin
prad_scen=`cbp get_config $scenario land "PRECIP ATMOS DEPOSITION"`
cbp check_prad $prad_scen $basin
scenario="subsheds"
# run land
segs=`cbp get_landsegs $basin`
location="p6_vadeq" # crucial to avoid collisions if running multiple installs
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
job_name="${location}_${scenario}_${i}"
echo "sbatch --job-name=\"$job_name\" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch --job-name="$job_name" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
# run river
# can now immediately be submitted after submitting land
# since the dependency ordering works with land and river
segs=`cbp get_riversegs $basin`
for i in $segs; do
deps=`cbp mm_river_deps $scenario $i`
echo "Segment $i Found deps= $deps"
job_name=`cbp mm_job_name $scenario $i`
echo "sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river"
sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
Rappahannock:
./run/resegment/add_sub_watershed.bat RU2_6090_6220_whites_run RU2_6090_6220 cbp-6.1 subsheds 0.9
riverseg=RU2_6091_6090
Rscript run/resegment/ftable_creation.R $riverseg manual vahydro-1.0 "/opt/model/p6/vadeq/input/param/river/vahydro_2022/ftables/" 1.13 8395.2 3 0.01540171
mkdir tmp/scratch/rwb
/opt/model/meta_model/run_model hsp2_cbp6 $scenario $riverseg tmp/scratch/rwb river prep 01_run_rug
. hspf_config
basin=RU5_6030_0001
scenario=subsheds
met_scen=`cbp get_config $scenario land MET`
cbp check_met $met_scen $basin
prad_scen=`cbp get_config $scenario land "PRECIP ATMOS DEPOSITION"`
cbp check_prad $prad_scen $basin
segs=`cbp get_riversegs $basin`
scenario="subsheds"
# run land
segs=`cbp get_landsegs $basin`
location="p6_vadeq" # crucial to avoid collisions if running multiple installs
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
job_name="${location}_${scenario}_${i}"
echo "sbatch --job-name=\"$job_name\" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch --job-name="$job_name" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
# run river
# can now immediately be submitted after submitting land
# since the dependency ordering works with land and river
for i in $segs; do
deps=`cbp mm_river_deps $scenario $i`
echo "Segment $i Found deps= $deps"
job_name=`cbp mm_job_name $scenario $i`
echo "sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river"
sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
Run the SF Shenandoah River in its entirety. It has not previously completed when ding the PM model?
segs="PS4_5840_5240 PS5_5240_5200 PS5_5200_4380"
scenario=p6ss
basin=PS5_5200_4380
basin=PS5_5200_4380
# new flexible basingen
cbp basingen $basin
segs=`cbp get_riversegs $basin`
for i in $segs; do
deps=cbp mm_river_deps $scenario $i
echo "Segment $i Found deps= $deps"
job_name=cbp mm_job_name $scenario $i
echo "sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river"
sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
- Zero flow out in `PM1_4252_4250` cause failure.
- See code:
hydr<-read.csv('/media/model/p6/out/river/subsheds/hydr/PM1_4252_4250_hydr.csv') hydr[1:2,]
- initial volume was `10000`, which was outside of the FTABLE `input/param/river/vahydro_2022/HYDR.csv`
- tried setting to `100` (just guessing), and that was waaay into the zero flow part of the ftable.
- Examined ftable and set to 1500, a flow out of about 1-2 cfs: http://deq1.bse.vt.edu:81/p6/vadeq/tmp/uci/river/subsheds/PM1_4252_4250.uci
Final Potomac.
Fails 3 segments above the fall line: PM1_4250_4500 (Great Falls)
ERROR: the wdm file
../../../tmp/wdm/river/subsheds/stream/PM1_4252_4250.wdm
Had zero flow for the first month
Mattaponi
cbp check_land $scenario $basin
Land segments with at least one LU missing:
N51033 N51097 N51137 N51177 N51101
basin=YM4_6620_0001
scenario="subsheds"
# run land
segs=`cbp get_landsegs $basin`
location="p6_vadeq" # crucial to avoid collisions if running multiple installs
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
job_name="${location}_${scenario}_${i}"
echo "sbatch --job-name=\"$job_name\" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch --job-name="$job_name" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
# run river
# can now immediately be submitted after submitting land
# since the dependency ordering works with land and river
segs=`cbp get_riversegs $basin`
for i in $segs; do
deps=`cbp mm_river_deps $scenario $i`
echo "Segment $i Found deps= $deps"
job_name=`cbp mm_job_name $scenario $i`
echo "sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river"
sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
Ragged Mountain was lingering (not old model has RM as child of SF reservoir, but that is not correct hydrography (altho it works via remote links), so set this up with actual parentage and will later figure out how to organize those in the final model):
./run/resegment/add_sub_watershed.bat JL4_6520_6710_ragged_mtn JL4_6520_6710 cbp-6.1 subsheds 1.8
Rscript run/resegment/ftable_creation.R JL4_6521_6520 local_channel vahydro-1.0 "/opt/model/p6/vadeq/input/param/river/vahydro_2022/ftables/"
JL4_6521_6520,1,26.83,52.48,NA,0.5,NA,0.27,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
Sandy River reservoir:
./run/resegment/add_sub_watershed.bat JA1_7640_7280_sandy_river JA1_7640_7280 cbp-6.1 subsheds 31.52
out_point = sf::st_sfc(sf::st_point(c(-78.3179, 37.2586)), crs = 4326) nhd_out <- get_nhdplus(out_point)
length_ft, da_sqmi, cslope 36748.68884 31.5178436982382 0.00140342204952214
Rscript run/resegment/ftable_creation.R JA1_7641_7640 manual vahydro-1.0 "/opt/model/p6/vadeq/input/param/river/vahydro_2022/ftables/" 31.52 36748.69 2 0.0014
Swift Creek ( does not get run when running appomattox to segment 0001 )
. hspf_config
basin=JA2_7290_0001
scenario="subsheds"
# run land
segs=`cbp get_landsegs $basin`
location="p6_vadeq" # crucial to avoid collisions if running multiple installs
read -r scope land_scenario < <(cbp get_config $scenario river "LAND SCENARIO")
for i in $segs; do
job_name="${location}_${scenario}_${i}"
echo "sbatch --job-name=\"$job_name\" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land "
sbatch --job-name="$job_name" /opt/model/meta_model/run_model hspf_cbp6 $land_scenario $i auto land
done
# run river
# can now immediately be submitted after submitting land
# since the dependency ordering works with land and river
segs=`cbp get_riversegs $basin`
for i in $segs; do
deps=`cbp mm_river_deps $scenario $i`
echo "Segment $i Found deps= $deps"
job_name=`cbp mm_job_name $scenario $i`
echo "sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river"
sbatch --job-name=$job_name $deps /opt/model/meta_model/run_model hsp2_cbp6 $scenario $i auto river
done
Overview
subsheds, cbp-6.1
Tasks:
Workflow for Updating sub-watershed hydrocode during resegmentation.