Noah Fetch Data
#!/bin/bash
for ((y=2009;y<=2009;y+=1)); do
yyyy=`printf "%04d" $y`
for ((m=12;m<=12;m+=1)); do
ay=`printf "%02d" $m`
case "$m" in
1) nd=31
;;
2) nd=28
if [ $y -eq 2008 ]
then
nd=29
fi
;;
3) nd=31
;;
4) nd=30
;;
5) nd=31
;;
6) nd=30
;;
7) nd=31
;;
8) nd=31
;;
9) nd=30
;;
10) nd=31
;;
11) nd=30
;;
12) nd=31
;;
esac
for ((i=28;i<=$nd;i+=1)); do
gun=`printf "%02d" $i`
for ((k=0;k<=18;k+=6)); do
saat=`printf "%02d" $k`
echo gfsanl_4_${yyyy}${ay}${gun}_${saat}00_000.grb2
# wget -c --waitretry=100 -Ogfsanl_4_${yyyy}${ay}${gun}_${saat}00_000.grb2 "http://nomads.ncdc.noaa.gov/data/gfsanl/${yyyy}${ay}/${yyyy}${ay}${gun}/gfsanl_4_${yyyy}${ay}${gun}_${saat}00_000.grb2" &>>wget.log &
done
# wait # 4'er tane indirmesi için burada bekletiyoruz
done
done
done