-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathretro_check.ksh
executable file
·72 lines (45 loc) · 1.61 KB
/
retro_check.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
#set -euax
data=/scratch2/BMC/zrtrr/rli/data
yy=22
# check using juldate: gfs fcst, lightning and gdas ensemble link
for dd in $(seq 119 132); do
#num=`ls ${data}/rap/full/wrfnat/grib2/21${dd}* | wc`
#echo "${dd} rap_bdy " $num
#num=`ls ${data}/hrrr/conus/wrfnat/grib2/21${dd}*00 | wc`
#echo "${dd} hrrr " $num
num=`ls ${data}/gfs/0p25deg/grib2/${yy}${dd}* | wc`
echo "${dd} gfs_fcst " $num
num=`ls ${data}/lightning/vaisala/netcdf/${yy}${dd}* | wc`
echo "${dd} lighting" $num
num=`ls ${data}/enkf/atm/${yy}${dd}* | wc`
echo "${dd} gfs_ensemble_ln" $num
echo ''
done
# check other data
yymm=202204
for dd in $(seq -w 29 30); do
yymmdd=${yymm}${dd}
num=`ls ${data}/enkf/atm/enkfgdas.${yymmdd}/*/atmos/mem*/gdas.t*z.atmf009.nc | wc`
echo "${yymmdd} gfs_ensemble" $num
num=`ls ${data}/obs_rap/${yymmdd}*rap_e.* |wc`
echo "${yymmdd} rap_e" $num
num=`ls ${data}/obs_rap/${yymmdd}*rap.* |wc`
echo "${yymmdd} rap_obs" $num
num=`ls ${data}/reflectivity/*${yymmdd}-*.grib2 |wc`
echo "${yymmdd} reflectivity" $num
echo ''
done
yymm=202205
for dd in $(seq -w 01 12); do
yymmdd=${yymm}${dd}
num=`ls ${data}/enkf/atm/enkfgdas.${yymmdd}/*/atmos/mem*/gdas.t*z.atmf009.nc | wc`
echo "${yymmdd} gfs_ensemble" $num
num=`ls ${data}/obs_rap/${yymmdd}*rap_e.* |wc`
echo "${yymmdd} rap_e" $num
num=`ls ${data}/obs_rap/${yymmdd}*rap.* |wc`
echo "${yymmdd} rap_obs" $num
num=`ls ${data}/reflectivity/*${yymmdd}-*.grib2 |wc`
echo "${yymmdd} reflectivity" $num
echo ''
done