Skip to content

Commit

Permalink
🔧 added in SO4 configuration flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cemachelen committed Apr 11, 2019
1 parent 0b42e77 commit cfe66df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ if [ "$runVIS" = true ]; then
if [ "$runSO4" = true ]; then
./genmaps.py ${rundate}
else
./genmaps.py ${rundate}
./genmaps.py ${rundate} --SO4
cd ..
cd vis/${rundate}
if [ ${runffmpeg} = true ]; then
Expand Down
14 changes: 12 additions & 2 deletions Run_ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ print_usage() {
The following switches can be used to overwrite
Default behaviour.
**
-s turn OFF SO4 plotting
-m turn OFF Forecasting model (e.g to run viz only)
-p turn OFF viz steps (no jpgs etc to be produced)
-f turn ON ffmpeg mp4 production
Expand All @@ -63,6 +64,10 @@ set_ffmpeg() {
runffmpeg=true
}

set_SO4() {
setSO4=false
}

set_model() {
runTERREL=false
runCTGPROC=false
Expand All @@ -72,10 +77,11 @@ set_model() {
runCALPUFF=false
runmodel=false
}
while getopts 'd:n:pmfh' flag; do
while getopts 'd:n:pmsfh' flag; do
case "${flag}" in
d) rundate="${OPTARG}" ;;
n) vizhome="${OPTARG}" ;;
s) set_SO4 ;;
p) set_viz ;;
m) set_model ;;
f) set_ffmpeg ;;
Expand Down Expand Up @@ -400,7 +406,11 @@ if [ "$runVIS" = true ]; then
rm -rf ./vis/${rundate}
mkdir ./vis/${rundate}
cd Python
./genmaps.py ${rundate}
if [ "$setSO4" = true]; then
./genmaps.py ${rundate}
else
./genmaps.py ${rundate} --SO4
fi
cd ..
cd vis/${rundate}
if [ ${runffmpeg} = true ]; then
Expand Down
2 changes: 1 addition & 1 deletion VIZ_SITE_CODE/public_html/UNRESP_VIZ/Today

0 comments on commit cfe66df

Please sign in to comment.