Page 1 of 1

Multiple basemaps

Posted: Sun Jan 08, 2006 5:59 pm
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

Posted: Sun Jan 08, 2006 9:04 pm
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

Posted: Sun Jan 08, 2006 9:07 pm
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

Posted: Sun Jan 08, 2006 10:09 pm
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?

Posted: Mon Jan 09, 2006 9:13 am
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