The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Thu Dec 14, 2017 1:17 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Naming Export maps
PostPosted: Sat Dec 23, 2006 12:59 am 
Offline
Member

Joined: Sun May 14, 2006 6:28 pm
Posts: 29
Location: Katy, Tx
I am trying to write a script that will run when DAWS is opened from windows scheduler and will produce a series of maps and export them. I want this script to run a couple times a day (1Z and 13Z). But I don't want to overwrite the maps that I have already exported from the previous runs (e.g. dont want the maps run at 13Z to over write maps that were exported from 1Z run) or the previous day for the same time (e.g. don't want day 2 1Z map to overwrite day 1 1Z map). Is there a way to put a variable name in the export command? For example I thought I might be able to have an export map name "500mb@Y@M@D" thinking it might put the file name might turn out "500mb061213". Of course the filename turned out to be "500mb@Y@M@H" (should have guessed this :oops: )


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 3:44 am 
Offline
Senior Member

Joined: Mon May 02, 2005 4:13 pm
Posts: 252
Without look at the manual, which i know it is in there.. but you are on the right track. It is @YY@DD@MM.. you just have to double up the letters and it should work... Eventhough i dont know if it is YY, DD and MM but you get the point i am sure! Good luck!

I hope that helps a little!

Jon


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 1:52 pm 
Offline
Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
A line from one of my scripts:
EXPORT,d:\PRODUCTS\DAWS\Dewpoint\@YYL@MML@DDL@HHL@NNL.JPG


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 3:29 pm 
Offline
Member

Joined: Sun May 14, 2006 6:28 pm
Posts: 29
Location: Katy, Tx
The @YYL@MML@DDL worked. It seems the L char is the key.

Thanks for the help! It's rare when you can't get your answer on this forum.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 3:52 pm 
Offline
Member

Joined: Sun May 14, 2006 6:28 pm
Posts: 29
Location: Katy, Tx
To be more precise it's the combination of double letters and the L character (e.g. @YYL works @YL does not).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 9:06 pm 
Offline
Senior Member

Joined: Mon Aug 28, 2006 2:39 am
Posts: 119
Just in case anybody would like to download an image and date it from a website, something like the following works great:

download,[url]http://radar.weather.gov/ridge/Conus/RadarImg/latest.gif,C:\RADAR\@YYZ@MMZ@DDZ@HHZ@NNZ_conusRADAR.gif[/url]

This will download the full resolution RIDGE CONUS NEXRAD image, and save it to your computer using system date and time down to the minute. Maybe schedule the download for every 20-30 minutes or so for the RIDGE imagery.

This is a great little feature for archiving imagery off the web for later use.

Pat


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 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