The Weather Forecasting Forum
http://www.weathergraphics.com/forum/

Using Same Data!
http://www.weathergraphics.com/forum/viewtopic.php?f=9&t=1378
Page 1 of 1

Author:  ajwhall [ Wed Apr 30, 2008 9:14 am ]
Post subject:  Using Same Data!

Hello to the Group,

Please have a look at my script below:

download,[url]http://www.atmos.albany.edu/weather/data1/surface/syn/@Y@M@D12_syn.wmo,C:\Program[/url] Files\DigAtmEquinox\data\websitecharts.dat
import,C:\Program Files\DigAtmEquinox\data\websitecharts.dat
load,C:\Program Files\DigAtmEquinox\northatlanticcolour.dmf
analyze,HILO CONT CINT=3 COLOR=0:0:0 LINE=1 SLPR ANLB
stamp
export,E:\mysite\charts\imgslp.jpg
upload,[url]ftp://%%myusername%%:%%mypassword%%@ftp.mysite.com/web/charts/imgslp.jpg,E:\mysite\charts\imgslp.jpg[/url]
erase
sleep,15
load,C:\Program Files\DigAtmEquinox\europecolour.dmf
analyze,CONT CINT=2 COLOR=200:0:0 LINE=1 TEMP ANLB
stamp
export,E:\mysite\charts\imgtemp.jpg
upload,[url]ftp://%%myusername%%:%%mypassword%%@ftp.mysite.com/web/charts/imgtemp.jpg,E:\mysite\charts\imgtemp.jpg[/url]
erase
sleep,15
analyze,VECT COLOR=0:0:200 WIND ANLB
stamp
export,E:\mysite\charts\imgwind.jpg
upload,[url]ftp://%%myusername%%:%%mypassword%%@ftp.mysite.com/web/charts/imgwind.jpg,E:\mysite\charts\imgwind.jpg[/url]
erase
sleep,15
analyze,CONT CINT=5 COLOR=0:0:200 LINE=1 RELH ANLB
stamp
export,E:\mysite\charts\imghumid.jpg
upload,[url]ftp://%%myusername%%:%%mypassword%%@ftp.mysite.com/web/charts/imghumid.jpg,E:\mysite\charts\imghumid.jpg[/url]
erase



I wrote this script to send the four charts up to mysite at 14:00 GMT everyday. What I found out after a couple of day is the same data from the first download is reused but just dated with the current date! Have cleared data directory but with no joy! What am I doing wrong because it seems as if the data is been held else where from the data directory. If I down load the data manually and then run the script with out the download or import part then there are no problems!

Any help would be most welcomed however please note that I am a newbe to scripting on DAE.

Most Kindest Regards,

Andrew Hall.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/