Re: map_image [message #1912 is a reply to message #1344] |
Fri, 08 April 1994 00:47  |
stl
Messages: 70 Registered: February 1994
|
Member |
|
|
In article <2o1kru$okb@paperboy.gsfc.nasa.gov> fisher@echo.gsfc.nasa.gov (Brad L. Fisher) writes:
> ............................................ My question then is how do
> I get map_image to return the image with the map overlayed. Any help would
> be greatly appreciated.
hello,
well, as you realized, map_image just returns the image that can now
be displayed over your map (created with map_set).
First, create your map via map_set, creating continents, etc to your
liking. Then call map_image like the following:
wrapped_image = map_image(image,startx,starty,latmin = latmin,
latmax=latmax,lonmin=longmin, lonmax=longmax)
then to display this on top of your map, do the following:
tv,wrapped_image,startx,starty
then you may need (want) to redraw the grids or continents with map_grid
and map_continents.
Oh, just noticed almost this exact example is in the reference guide
under map_image.
If your question is how do you get the entire new image and the map into
one image, read it back from the screen with tvrd once you put it all
together. Or if you don't ever want it to appear on the screen, use a
pixmap instead of a visible window.
hope this helps, good luck,
-stephen
--
Stephen C Strebel / SKI TO DIE
stl@maz.sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
|
|
|