Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
In article <3m05fi$9hn@dicscs4.jrc.it>, sonia.mosca@cen.jrc.it (SONIA MOSCA) writes: |> |> Does anyone know how to fill sea with a color (or lines or pattern) |> when using MAP_CONTINENT procedure? |> |> Thank you |> |> Sonia |> Please also forward any replies to me. Also, is it possible to fill the land with colour when using MAP_CONTINENT? Cheers, Tim Osborn t.osborn@uea.ac.uk Climatic Research Unit, University of East Anglia Norwich, UK
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
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 ================================================= | Fergus Gallagher | | Remote Sensing Applications Development Unit | | British National Space Centre | | Monks Wood | | Huntingdon PE17 2LS / UK | | | | F.Gallagher@nerc.ac.uk | | http://uh.nmt.ac.uk/bnsc/fgg.html | =================================================
f055@uea.ac.uk (T.Osborn) wrote: > > In article <3m05fi$9hn@dicscs4.jrc.it>, sonia.mosca@cen.jrc.it (SONIA MOSCA) > writes: > |> > |> Does anyone know how to fill sea with a color (or lines or pattern) > |> when using MAP_CONTINENT procedure? > |> > |> Thank you > |> > |> Sonia > |> > > Please also forward any replies to me. Also, is it possible to fill the > land with colour when using MAP_CONTINENT? > > Cheers, Tim Osborn > > t.osborn@uea.ac.uk > Climatic Research Unit, > University of East Anglia > Norwich, UK I use the Thomas Oettli's procedures for the CIA World Map dataset available from ftp.sma.ch. Apart from having a higher resolution dataset, it has the ability to fill the continental polygons with an arbitrary colour. The routines are straightforward to use, only slightly more complicated than the IDL routines (an index file has to be preloaded) Fergus ================================================= | Fergus Gallagher | | Remote Sensing Applications Development Unit | | British National Space Centre | | Monks Wood | | Huntingdon PE17 2LS / UK | | | | F.Gallagher@nerc.ac.uk | | http://uh.nmt.ac.uk/bnsc/fgg.html | =================================================