#! /bin/csh -f

set start_time = `date +%s`
source ~/.cshrc

foreach script (dailycooling dailyheating dailyhighanomaly dailyhigh dailylowanomaly \
                dailylow daily dailymean monthlycooling monthlyheating monthlyhighanomaly \
                monthlyhigh monthlylowanomaly monthlylow monthly monthlymean precipdaily \
                precipthreemonthly preciptotaldaily preciptotalmonthly preciptotalthreemonthly \
                preciptotalweekly precipweekly solardaily solarmonthly solarthreemonthly \
                solarweekly threemonthlycooling threemonthlyheating threemonthlyhighanomaly \
                threemonthlyhigh threemonthlylowanomaly threemonthlylow threemonthly \
                threemonthlymean weeklycooling weeklyheating weeklyhighanomaly weeklyhigh \
                weeklylowanomaly weeklylow weekly weeklymean precipmonthly)
ncl ${script}.ncl
convert ${script}map.png -gravity North -chop 0x50 temp.png
convert -shave 175x300 temp.png ${script}map.png
end
rm temp.png
scp *map.png nbassill@operations.nysmesonet.org:/home/nbassill/public_html/plots/climate/daily/

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