Re: Filled Contour Colors on Maps Incorrect [message #26809 is a reply to message #26807] |
Wed, 26 September 2001 07:19   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
David Fanning wrote:
>
> Martin Downing (martin.downing@ntlworld.com) writes:
>
>> The CONTOUR bug can be illustrated very well in your code by just switching
>> off /FILL in the first contour call, or trying this to illustrate it:
Sorry this is no bug.
You should use /CELL_FILL instead of /FILL with maps.
CELL_FILL
Because of the handling of missing_data I always use /cell_fill
without maps too.
regards
Reimar
Set this keyword to produce a filled contour plot using a "cell filling"
algorithm. Use this keyword instead of FILL when you are drawing filled
contours over a map, when you have missing data, or when contours that
extend off the edges of the contour plot.
>>
>>
>> Map_Set, 0, 180, /CYLINDRICAL, LIMIT=limit, $
>> Position=[0.1,0.15,0.9,0.9], $
>> Color=white, charsize=2
>> ; edited first call with FILL unset
>> Contour, data, lons, lats, $
>> C_Colors=cn, Color=WHITE, $black, $
>> Max_Value=cmax, Min_Value=cmin, $
>> Levels=clevels, /OVERPLOT
>> wait , 5 ; Time to see that the unfilled contours make sense
>> ; now do the original call:
>> Contour, data, lons, lats, $
>> C_Colors=cn, Color=WHITE, $black, $
>> Max_Value=cmax, Min_Value=cmin, $
>> Levels=clevels, /FILL, /OVERPLOT
>> ; Oh dear - the filled contours have has no relation to the unfilled
>> contours
>
> No, alas. If I try to overplot filled contours
> onto a previously constructed contour plot, the colors
> are correct ONLY if that contour plot is not associated
> with a map projection.
>
> Cheers,
>
> David
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======
read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
|
|
|