The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Sat Oct 21, 2017 3:53 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Multiple basemaps
PostPosted: Sun Jan 08, 2006 5:59 pm 
Offline
Senior Member

Joined: Sun Nov 07, 2004 6:38 pm
Posts: 219
Location: New Brunswick, Canada
I`m running a script that calls up multiple basemaps/locations, and plots slp and fronts for each map then exports them.

Do I need to ingest the downloaded data for each basemap in the script. I just didn`t want to create unnecessary work for my PC if I don`t have to!!

Sample script below with only one ingest command. It works all except the fronts will not display on the second basemap loaded.
Quote:
erase
load,D:\DAW-Charts\north_american.dmf
download,[url]http://www.hpc.ncep.noaa.gov/discussions/codsus,D:\DAW-Charts\fronts.dat[/url]
download,[url]http://www.atmos.albany.edu/weather/data1/surface/syn/@Y@M@D@S_syn.wmo,D:\DAW-Charts\synop.dat[/url]
download,[url]http://www.atmos.albany.edu/weather/data1/surface/boy/@Y@M@D@H_boy.wmo,D:\DAW-Charts\synbouy.dat[/url]
ingest,D:\DAW-Charts\fronts.dat
product,wxp,0,fronts
ingest,D:\DAW-Charts\syn*.dat
ANALYZE,HILO CONT CINT=4 COLOR=003:003:100 LINE=1 SLPR
import,D:\DAW-Charts\overlay.gif
stamp
stamp
export,D:\DAW-Charts\product\na-surface.gif
erase
load,D:\DAW-Charts\canada.dmf
product,wxp,0,fronts
ANALYZE,HILO CONT CINT=4 COLOR=003:003:100 LINE=1 SLPR
import,D:\DAW-Charts\overlay.gif
stamp
stamp
export,D:\DAW-Charts\product\canada-surface.gif
erase


However, for the below example everything plots perfectly but only because I am ingesting the synop data twice. Do I need to ingest all the data for each location/map?

Quote:
erase
load,D:\DAW-Charts\north_american.dmf
download,[url]http://www.hpc.ncep.noaa.gov/discussions/codsus,D:\DAW-Charts\fronts.dat[/url]
download,[url]http://www.atmos.albany.edu/weather/data1/surface/syn/@Y@M@D@S_syn.wmo,D:\DAW-Charts\synop.dat[/url]
download,[url]http://www.atmos.albany.edu/weather/data1/surface/boy/@Y@M@D@H_boy.wmo,D:\DAW-Charts\synbouy.dat[/url]
ingest,D:\DAW-Charts\fronts.dat
product,wxp,0,fronts
ingest,D:\DAW-Charts\syn*.dat
ANALYZE,HILO CONT CINT=4 COLOR=003:003:100 LINE=1 SLPR
import,D:\DAW-Charts\overlay.gif
stamp
stamp
export,D:\DAW-Charts\product\na-surface.gif
erase
load,D:\DAW-Charts\canada.dmf
ingest,D:\DAW-Charts\fronts.dat
product,wxp,0,fronts
ingest,D:\DAW-Charts\syn*.dat
ANALYZE,HILO CONT CINT=4 COLOR=003:003:100 LINE=1 SLPR
import,D:\DAW-Charts\overlay.gif
stamp
stamp
export,D:\DAW-Charts\product\canada-surface.gif
erase


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 9:04 pm 
Offline
Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
No, one ingest is enough. I have several scripts working that way. There must be another problem (like trailing spaces...).
I also noticed two stamp commands after each other and an erase at the end. Why cleaning the screen at the end?

Greetings

Fred


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 9:07 pm 
Offline
Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
However, after a second look I found the problem. You have two ingests: the first is front and the second is synop. This last one erases the fronts you loaded in the first ingest. Just add one ingest with *.dat.

Greetings

Fred


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 10:09 pm 
Offline
Senior Member

Joined: Sun Nov 07, 2004 6:38 pm
Posts: 219
Location: New Brunswick, Canada
Thanks Fred :)

Two stamp commands are in there by mistake. As for erase, I assumed I should be using the erase command after each map has been exported to save problems when loading the next basemap?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 9:13 am 
Offline
Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Hello Bob

I use the following structure for scripts:

INPUT: one block consisting of
- download (one or more lines)
- ingest (one line with *.*)

PROCESS: one or more blocks, each consisting of
- comment (after a # the purpose of the block for documentation)
- load map (in the first block obliged to be sure you have the right map, in the next blocks in the same script optional, only if you want another map)
- erase (clean the map)
- analyse (one or more analyse/product command lines)
- stamp
- export

Hope this helps.

Greetings

Fred


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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