| Re: draw maps [message #3864 is a reply to message #3863] |
Thu, 06 April 1995 00:00   |
afl
Messages: 51 Registered: December 1994
|
Member |
|
|
In article <3m0fe6$8so@kwuz.nerc-keyworth.ac.uk>, Fergus Gallagher
<F.Gallagher@nerc.ac.uk> writes:
|> Try the following:
|>
|> erase,colour
|> map_set,/noerase,......
|>
|> However, this does not work for hardcopy (PS at least).
|>
|> Anyone got a more general solution?
|>
|> Fergus
The unfortunate thing about the above solution is that it does
not cause the ocean to be a color which is different
from the continents. I am running IDL 4.0b3 (a beta version).
Here is a plug for purchasing IDL 4.0 since I believe my solution
(in whole) cannot be done with an earlier version of IDL.
Here is an example...
BLUE=33 ; For my personal color table 33 is blue.
map_set, /cyl
polyfill,!x.window([0,1,1,0,0]),!y.window([0,0,1,1,0]),color =BLUE,/norm
map_continents, /fill, color=!p.background ; Fill in the continents
map_continents ; Draw continental outlines
This works for an Xterm and any other color output device,
including postscript. They key is the NEW /fill keyword in map_continents.
If one does not mind having the ocean and continents the same color, then
one could omit the line with the /fill keyword.
--
Andrew F. Loughe email: afl@cdc.noaa.gov
University of Colorado, CIRES voice: (303) 492-0707
Campus Box 449 fax: (303) 497-7013
Boulder, CO 80309-0449 USA
|
|
|
|