Multiple basemaps

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
Post Reply
britbob
Senior Member
Posts: 218
Joined: Sun Nov 07, 2004 6:38 pm
Location: New Brunswick, Canada

Multiple basemaps

Post by britbob »

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.
erase
load,D:\DAW-Charts\north_american.dmf
download,http://www.hpc.ncep.noaa.gov/discussion ... fronts.dat
download,http://www.atmos.albany.edu/weather/dat ... \synop.dat
download,http://www.atmos.albany.edu/weather/dat ... ynbouy.dat
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?
erase
load,D:\DAW-Charts\north_american.dmf
download,http://www.hpc.ncep.noaa.gov/discussion ... fronts.dat
download,http://www.atmos.albany.edu/weather/dat ... \synop.dat
download,http://www.atmos.albany.edu/weather/dat ... ynbouy.dat
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
Fred
Senior Member
Posts: 198
Joined: Tue Nov 25, 2003 4:22 pm
Location: Suoi Tien, Vietnam

Post by Fred »

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
Fred
Senior Member
Posts: 198
Joined: Tue Nov 25, 2003 4:22 pm
Location: Suoi Tien, Vietnam

Post by Fred »

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
britbob
Senior Member
Posts: 218
Joined: Sun Nov 07, 2004 6:38 pm
Location: New Brunswick, Canada

Post by britbob »

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?
Fred
Senior Member
Posts: 198
Joined: Tue Nov 25, 2003 4:22 pm
Location: Suoi Tien, Vietnam

Post by Fred »

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
Post Reply