The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Mon Oct 23, 2017 11:48 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Oct 15, 2004 4:54 pm 
Offline
Administrator

Joined: Sat Nov 22, 2003 10:47 pm
Posts: 511
This was used for retrieving data and doing the hurricane maps over at Stormtrack.org. I had it running every 15 minutes, which of course meant I had to enter ALL those times in the scheduler (tedious). Obviously the next version will be set up to execute scripts at intervals as well as from a list of times.

Code:
erase
load,c:\progra~1\digita~1\coast.dmf
radar,bref1,amx mlb
export,c:\radar.jpg
upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/radar.jpg,c:\radar.jpg
download,http://weather.noaa.gov/pub/data/raw/wt/wtnt21.knhc.tcm.at1.txt,c:\hur.txt
ingest,c:\hur.txt
load,c:\progra~1\digita~1\floridax.dmf
hurricane
stamp
export,c:\trackx.gif
upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/trackx.gif,c:\trackx.gif
load,c:\progra~1\digita~1\florida.dmf
hurricane
stamp
export,c:\track.gif
upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/track.gif,c:\track.gif


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 11:10 pm 
Offline
Member

Joined: Sun Nov 23, 2003 11:10 pm
Posts: 26
Location: Leicestershire, England
Wow some good scripts coming in now.

Now I am a novice DAWS scripter – so would it be possible for peeps to explain the scripts – however I will try to diagnose the hurricane script.

This is my own reading of the script – please EDIT this post and correct my mistakes – by seeing how other scripts work you will be able to pinch bits from them and write your own - hopefully

OK Here goes.. but it seems that there are three scripts in one here

*** script to download, plot and upload radar ***********

Erase
Clears the map

load,c:\progra~1\digita~1\coast.dmf
loads a pre-created (and saved) map called coast.dmf

radar,bref1,amx mlb
plots base reflectivity radar from stations AMX and MLB onto the coast.dmf map.

export,c:\radar.jpg
saves the map + radar onto the local PC as radar.jpg.

upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/radar.jpg,c:\radar.jpg
FTP’s the saved radar plot up to a website



***** plots hurricane tracks ************

download,[url]http://weather.noaa.gov/pub/data/raw/wt/wtnt21.knhc.tcm.at1.txt,c:\hur.txt[/url]
grabs the data and saves it as a file on the pc called hur.txt

ingest,c:\hur.txt
imports the file into DAWS

load,c:\progra~1\digita~1\floridax.dmf
loads up a pre created map call floridax.dmf

hurricane
plot hurricane tracks

stamp
applies date and time to the plot

export,c:\trackx.gif
saves the plot to the pc as trackx.gif

upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/trackx.gif,c:\trackx.gif
uploads the saved plot to a web space


this is where I get lost ?? as I cannot not see the point of this – perhaps if the author had download some further data ?? – but missing is the line download…..


load,c:\progra~1\digita~1\florida.dmf
hurricane
stamp
export,c:\track.gif
upload,ftp://<username>:<password>@www.stormtrack.org/stormtrack.org/track.gif,c:\track.gif


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group