-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglob-omg-diags-inst.sh
33 lines (30 loc) · 1.07 KB
/
glob-omg-diags-inst.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
#!/bin/tcsh
# compute omega diagnostics
# ne30 is about 20-30 min using 200 GB
# ne60 is about 1.5 hrs at 500 GB (can use 350GB)
# ne120 only works for the tropics before getting killed (at 800GB)
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 = "/local_scratch/$SLURM_JOB_ID/"
set data_dir = "/glade/scratch/$USER/"
set ncl_dir = "/glade/work/$USER/CESM2/arh-git-scripts/ncl/"
#set ncl_dir = "/glade/work/aherring/CESM2/temp/"
echo "You are on Glade"
echo "NCL directory is "$ncl_dir
endif
#ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fincl1="'$fincl1'"' $ncl_dir/omg-diags.ncl
ncl 'dir="'$data_dir'"' 'fname1="'$case1'"' 'fincl1="'$fincl1'"' $ncl_dir/vomg-diags.ncl