#! /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 date = $yy$mm$dd

cd /aca1/nb965428/wrf2gem/mesonet/climate/daily

rm solarweekly.dat

foreach station (SCHU WHIT WATE CSQR SPRA COLD JORD WEST BERK BELD ESSX CHES STEP OTIS LAUR GABR COBL TICO WFMB COPE BATA SBRI SHER DELE WOLC JOHN LOUI TULL WARW WALT CINC FRED BRAN WELL CAPE BELL)

cp ${station}data stationdata
cp ../../meta/$station.txt station.ascii
ncl solar.ncl
end

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