-
Notifications
You must be signed in to change notification settings - Fork 1
/
fkessler-2-case.sh
36 lines (33 loc) · 1.01 KB
/
fkessler-2-case.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/tcsh
# compute omega diagnostics
if ( "$#argv" != 5) then
echo "Wrong number of arguments specified:"
echo " -arg 1 case1 string"
echo " -arg 2 is fincl number (e.g. h0)"
echo " -arg 3 case2 string"
echo " -arg 4 is fincl number (e.g. h0)"
echo " -arg 5 is plot variable"
exit
endif
set n = 1
set case1 = "$argv[$n]"
set n = 2
set fincl1 = "$argv[$n]"
set n = 3
set case2 = "$argv[$n]"
set n = 4
set fincl2 = "$argv[$n]"
set n = 5
set plotvar = "$argv[$n]"
if (`hostname` == "hobart.cgd.ucar.edu") then
set data_dir = "/scratch/cluster/$USER/"
set ncl_dir = "/home/aherring/arh-git-scripts/ncl/"
echo "You are on Hobart"
echo "NCL directory is "$ncl_dir
else
set data_dir = "/glade/scratch/$USER/"
set ncl_dir = "/glade/work/aherring/CESM2/arh-git-scripts/ncl/"
echo "You are on Glade"
echo "NCL directory is "$ncl_dir
endif
ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' 'plotvar="'$plotvar'"' $ncl_dir/baroclinic_wave_2case.ncl