#! /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

#foreach station (SCHU WHIT WATE CSQR SPRA COLD JORD WEST BERK BELD ESSX CHES STEP OTIS LAUR GOVX GABR COBL TICO WFMB COPE BATA SBRI SHER)

foreach station (CAPE)


cp ../meta/$station.txt station.ascii
ncl getclimate.ncl
convert $station.png -gravity North -chop 0x100 temp.png
convert -shave 150x60 temp.png $station.png
end

#cp *.png /home/nb965428/public_html/climate

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