-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgfs.ksh
executable file
·54 lines (43 loc) · 1.03 KB
/
gfs.ksh
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
43
44
45
46
47
48
49
50
51
#!/bin/ksh
#####################################################
# machine set up (users should change this part)
#####################################################
# For Hera, Jet, Orion
#SBATCH --account=zrtrr
#SBATCH --qos=batch
#SBATCH --ntasks=1
#SBATCH --partition=service
#SBATCH --time=08:00:00
#SBATCH --job-name=get_gfsFcst
#SBATCH -o log.gfsFcst
# For WCOSS2
#PBS -A RRFS-DEV
#PBS -q dev_transfer
#PBS -l select=1:ncpus=1:mem=2G
#PBS -l walltime=06:00:00
#PBS -N get_gfsFcst
#PBS -j oe -o log.gfsFcst
#-----------------#
# gfs forecast #
#-----------------#
cd gfs/0p25deg/grib2
yy=2023
mm=06
for day in $(seq -w 09 09);
do
for cyc in 00 06 12 18
do
hsi get /BMC/fdr/Permanent/${yy}/${mm}/${day}/grib/ftp/7/0/96/0_1038240_0/${yy}${mm}${day}${cyc}00.zip
unzip ${yy}${mm}${day}${cyc}00.zip
rm ${yy}${mm}${day}${cyc}00.zip
done
done
# keep 0-49 hour forecast and delete others
rm ??????????05?
rm ??????????06?
rm ??????????07?
rm ??????????08?
rm ??????????09?
rm ??????????1*
rm ??????????2*
rm ??????????3*