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
config/seglists/JL3_7090_7150_order.riv: set order = ( JL3_7090_7150_order_01, JL3_7090_7150_order_02, JL3_7090_7150_order_03, JL3_7090_7150_order_04 )
Make the directory: mkdir config/seglists/JL3_7090_7150_order
config/seglists/JL3_7090_7150_order/JL3_7090_7150_order_01.riv: set segments = (JL1_7080_7190, JL2_7240_7350, JL1_6940_7200)
config/seglists/JL3_7090_7150_order/JL3_7090_7150_order_02.riv: set segments = (JL1_7190_7250, JL2_7350_7090)
config/seglists/JL3_7090_7150_order/JL3_7090_7150_order_03.riv: set segments = (JL2_7250_7090)
config/seglists/JL3_7090_7150_order/JL3_7090_7150_order_04.riv: set segments = (JL3_7090_7150)
segs=`cbp get_riversegs JL3_7090_7150`
segs=${segs//" "/\',\'}
segs="'$segs'"
echo "AllSegList <- c($segs)"
# R Code
orders = list()
fn_stream_order <- function (seg, AllSegList) {
itribs <- fn_upstream(seg,AllSegList)
if (itribs[1] == "NA") {
stream_order = 1
} else {
trib_order = c()
for (t in itribs) {
trib_order[t] = fn_stream_order(t, AllSegList)
}
stream_order = 1 + max(trib_order)
}
return(stream_order)
}
for (k in AllSegList) {
korder <- fn_stream_order(k,AllSegList)
print(paste(k, korder))
}
There is some evidence that the slurm order attempts when LACKING an _order file are amiss:
see ./run_bhatt/OneCommandWSM_P6_STRLOAD_SCENCF/bhatt_one_command_wsm.csh
for example, when running the basin JL6_6890_6990, the ETM part of the script appeared to shuffle the order
Monitored this with the following: fgrep JL /opt/model/p6/vadeq/tmp/rob-slurm/vadeq_2021_2022-09-08-13-09-08.out |grep -i FINISH
Note that JL6_7320_7150 runs ETM (or finishes etm) before JL6_7430_7320, which is supposed to be flowing into it.
Now, ETM doesn't NEED to run in order since it only handle local runoff, but the code should do this if I understand correctly?
Tasks
Create a script namedomitted in favor of watershed dependency approach in Run with slurm meta_model#3make_stream_order
using code in Script 1Get Stream Order and Tribs
Existing Tools & Method
make_stream_order
cbp make_stream_order JL4_6710_6740
basingen.csh
basingen.csh
is freaky since it requires the scenario argument but doesn't do anything with itbasingen
(no file extension) script to run with full segment name, and no scenario?Script 1: Generate the order files for Rivanna basin and move to seglists directory.
Example - Hand Built
set order = ( CHOP_order_01 )
set segments = ( EM2_3980_0001 )
cbp get_config vadeq_2021 script BASINS
(in case you need to find what outlet it is)JL3_7090_7150
JL1_7080_7190 JL2_7240_7350 JL1_6940_7200 JL1_7190_7250 JL2_7350_7090 JL1_7200_7250 JL2_7250_7090 JL3_7090_7150
set order = ( JL3_7090_7150_order_01, JL3_7090_7150_order_02, JL3_7090_7150_order_03, JL3_7090_7150_order_04 )
mkdir config/seglists/JL3_7090_7150_order
set segments = (JL1_7080_7190, JL2_7240_7350, JL1_6940_7200)
set segments = (JL1_7190_7250, JL2_7350_7090)
set segments = (JL2_7250_7090)
set segments = (JL3_7090_7150)
There is some evidence that the slurm order attempts when LACKING an
_order
file are amiss:./run_bhatt/OneCommandWSM_P6_STRLOAD_SCENCF/bhatt_one_command_wsm.csh
fgrep JL /opt/model/p6/vadeq/tmp/rob-slurm/vadeq_2021_2022-09-08-13-09-08.out |grep -i FINISH
The text was updated successfully, but these errors were encountered: