-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglob-diags.sh
29 lines (26 loc) · 904 Bytes
/
glob-diags.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
#!/bin/tcsh
# compute omega diagnostics
if ( "$#argv" != 2) then
echo "Wrong number of arguments specified:"
echo " -arg 1 case1 string"
echo " -arg 2 is fincl number (e.g. h0)"
exit
endif
set n = 1
set case1 = "$argv[$n]"
set n = 2
set fincl1 = "$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 = "/glade/scratch/$USER/"
set ncl_dir = "/glade/work/$USER/CESM2/arh-git-scripts/ncl/"
#set ncl_dir = "/gpfs/fs1/work/aherring/CESM2/physres/globdiags"
echo "You are on Glade"
echo "NCL directory is "$ncl_dir
endif
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fincl1="'$fincl1'"' $ncl_dir/all-diags.ncl
ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fincl1="'$fincl1'"' $ncl_dir/all-3d-diags.ncl