#! /bin/csh -f

set start_time = `date +%s`

source /aca1/nb965428/.cshrc

set mm = `date -u +%m`
set dd = `date -u +%d`
set hh = `date -u +%k`
set yy = `date -u +%y`
echo The Current Date Is $yy$mm$dd


set currentdate = 20150810
set startday = 0
set endday   = 400
while ( $startday <= $endday)

set dd = `date +%d -d "$currentdate UTC + $startday day"`
set mm = `date +%m -d "$currentdate UTC + $startday day"`
set yy = `date +%y -d "$currentdate UTC + $startday day"`

#scp ${yy}${mm}${dd}/*png nbassill@operations.nysmesonet.org:/home/nbassill/public_html/archive/20$yy/$mm/$dd/climate
echo $yy$mm$dd
@ startday ++
end

set end_time   = `date  +%s`
@ length_time  = $end_time - $start_time
echo "It took this long to run copy.csh: $length_time seconds"
