#!/bin/sh
local_root=~/igs/pub/rinex
year=1997
while [ ${year} -le 2006 ]; do
doy=001
ndays=`ymd2ydoy ${year} 12 31 | awk '{print $2}'`
yy=`echo $year | awk '{print substr($0,3,2)}'`
while [ ${doy} -le ${ndays} ]; do
doy=`echo $doy | awk '{printf("%03d",$0)'}`
day_dir=${local_root}/${year}/${doy}
mkdir -p ${day_dir}
cd ${day_dir}
pwd
ncftpget -R ftp://nfs.kasi.re.kr/gps/data/daily/${year}/${doy}/${yy}d
doy=`expr $doy + 1`
done
year=`expr $year + 1`
done
Note: the size of the data will be so large.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment