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
p6 rug -- where is this called? not in bhatt_one_command_wsm.csh??
p6 run_river.csh
run_river_oneseg.csh
run_river_oneseg_calib.csh
run export script
delete H5
bhatt_one_command_wsm.csh
Note: the location of bhatt_one_command_wsm.csh is determined by the scenario script ".con" file. As of 7/2022 we are using the following path entries:
Make the setting of HSP_VERSION set in environment variables from
As exported env variable before running script
hspf.config: if we want it globally - does not yet work since this ends up overwriting the exported ENV variable until we get reading into control files
config/scripts/[scenario].con
P6: verify this is as easy as put it in the script/*.con, and eliminate the directives to look for set_hspf_icprb ...commands
P5: Must figure out the best place to load the script/*.con file.
Ultimately we want to have the ability to run multiple post-processing routines depending on object class (landseg, riverseg), and also customizable attached post-proceesing sripts in the database.
hspf_config: Looks for a scenario argument(2nd arg, $1), and if it finds it, will look for a config/control/scripts/[scenario].con file to load csh variables. Has code to translate CSH formatted vars to bash (eliminate the set prefix)
Should this move to it's own generic function?
See: find_scenario_fragment: and migrate code here perhaps?
Implementation:
cbp script runs hspf_config
Create script hspf_to_hsp2 to overhaul the UCI
set environment variable "HSP_VERSION=hsp2" or "HSP_VERSION=hspf"
export environment variable before running
If version = hsp2 then modify UCIs after generating
if HSP_VERSION is not set, set default HSP_VERSION=hspf
This is a quick and dirty implementation using sed, since initial testing has only shown a single line being incompatible.
cat ~/working/modeling/hsp2/test_cbp_river/OR1_7700_7980.uci |sed "s/RESUME 0 RUN 1 UNIT SYSTEM 1/RESUME 0 RUN 1 UNIT SYSTEM 1/"`
Code: hsp_uci_version
Convert to hsp2 and back to hspf.
hsp_uci_version ~/working/modeling/hsp2/test_cbp/forA51800.uci hsp2
converting /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci to hsp2
head /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci
RUN
GLOBAL
A51800 for | P5 | p532sova_2 | VA,SUFFOLK
START 1984/ 1/ 1 END 2019/12/31
RUN INTERP OUTPUT LEVEL 0 0
RESUME 0 RUN 1 UNIT SYSTEM 1
END GLOBAL
FILES
hsp_uci_version ~/working/modeling/hsp2/test_cbp/forA51800.uci hspf
converting /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci to hspf
head /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci
RUN
GLOBAL
A51800 for | P5 | p532sova_2 | VA,SUFFOLK
START 1984/ 1/ 1 END 2019/12/31
RUN INTERP OUTPUT LEVEL 0 0
RESUME 0 RUN 1 TSSFL 15 WDMSFL 16
END GLOBAL
FILES
The text was updated successfully, but these errors were encountered:
Tasks/Status
HSP_VERSION
variablebhatt_one_command_wsm.csh
??set PROJECT_HOME = /opt/model/p6/gb604b
set MY_HOME = run_bhatt
set SCRIPT_DIR = OneCommandWSM_P6_STRLOAD_SCENCF
HSP_VERSION
set in environment variables fromhspf.config
: if we want it globally - does not yet work since this ends up overwriting the exported ENV variable until we get reading into control filesconfig/scripts/[scenario].con
set_hspf_icprb
...commandsCode
hsp_uci_version
: converts a UCI from hspf to hsp2 or vice versahsp_uci_version [uci file full path] [hsp version]
hsp_uci_version ~/working/modeling/hsp2/test_cbp/forA51800.uci hsp2
run/standard/run_lug.csh
hspf_config
: Looks for a scenario argument(2nd arg, $1), and if it finds it, will look for a config/control/scripts/[scenario].con file to load csh variables. Has code to translate CSH formatted vars to bash (eliminate theset
prefix)find_scenario_fragment
: and migrate code here perhaps?Implementation:
cbp
script runs hspf_confighspf_to_hsp2
to overhaul the UCIHSP_VERSION=hspf
HSP_VERSION="hsp2";export HSP_VERSION;cbp run_land.csh hsp2_2022 OR4_8120_7890
Converting UCI
This is a quick and dirty implementation using
sed
, since initial testing has only shown a single line being incompatible.Code: hsp_uci_version
Convert to hsp2 and back to hspf.
The text was updated successfully, but these errors were encountered: