Page 1 of 1

SCRIPT: Hurricane tracking

Posted: Fri Oct 15, 2004 4:54 pm
by Tim Vasquez
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: Select all

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

Posted: Sun Oct 17, 2004 11:10 pm
by Stu
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.stormtr ... \radar.jpg
FTP’s the saved radar plot up to a website



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

download,http://weather.noaa.gov/pub/data/raw/wt ... c:\hur.txt
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.stormtr ... 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.stormtr ... \track.gif