-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmse-diff-2-case.sh
43 lines (35 loc) · 1.63 KB
/
mse-diff-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
36
37
38
39
40
41
42
#!/bin/tcsh
# compute omega diagnostics
if ( "$#argv" != 4) 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)"
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]"
if (`hostname` == "hobart.cgd.ucar.edu") then
set data_dir = "/scratch/cluster/$USER/"
set ncl_dir = "/home/$USER/arh-git-scripts/ncl-scripts"
echo "You are on Hobart"
echo "NCL directory is "$ncl_dir
else
set data_dir = "/glade2/scratch2/$USER/"
set ncl_dir = "/glade/p/work/$USER/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'"' $ncl_dir/dzonal_eflx_diff2case.ncl
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' $ncl_dir/dzonal_eflx2_diff2case.ncl
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' $ncl_dir/dzonal_gds_diff2case.ncl
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' $ncl_dir/sausage/dzonal_gds2_diff2case.ncl
ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' $ncl_dir/dzonal_gds3_diff2case.ncl
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fname2="'$case2'"' 'fincl1="'$fincl1'"' 'fincl2="'$fincl2'"' $ncl_dir/sausage/dzonal_psi_2case.ncl