#!/bin/csh -f

rm -f tai-utc.dat
ncftpget maia.usno.navy.mil . ser7/tai-utc.dat

ls -l tai-utc.dat | awk '{print  " " $6 " " $7 " " $8}' > func_input

cp $SIMBIOS_ROOT/data/modis/static/leapsec.dat .
PGS_TD_NewLeap < func_input >& /dev/null

rm func_input
rm tai-utc.dat
rm leapsec.dat

diff $SIMBIOS_ROOT/data/modis/static/leapsec.dat leapsec.dat.new

# mv leapsec.dat.new to data diretory

exit
