comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Filled Contour Colors on Maps Incorrect
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Filled Contour Colors on Maps Incorrect [message #26800 is a reply to message #26799] Wed, 26 September 2001 08:27 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
Ok your right enough, its not a bug! Inspired by Reimar's excellent example
of actually reading the manual, I noted that under the CELL_FILL section of
the CONTOUR routine it states:
"Tip - In order for CONTOUR to fill the contours properly when using a map
projection, the X and Y arrays (if supplied) must be arranged in increasing
order. This ensures that the polygons generated will be in counter clockwise
order, as required by the mapping graphics pipeline."

Sure enough David's data had the Y data (LATS) in decreasing order. So all
we need to do to fix David's puzzle is reverse the Y data before the plot
routines:

lats = reverse(lats)
data = reverse(data, 2)

The example then works fine (and actually gives yet another different result
if you just replace /FILL with /CELL_FILL)!

Cheers

Martin
Funny that RSI considers information that would have prevented this whole
diversion a *tip* :)




--
----------------------------------------
Martin Downing,
Clinical Research Physicist,
Orthopaedic RSA Research Centre,
Woodend Hospital, Aberdeen, AB15 6LS.
Tel. 01224 556055 / 07903901612
Fax. 01224 556662

m.downing@abdn.ac.uk

"David Fanning" <david@dfanning.com> wrote in message
news:MPG.161b9484d4bf047b9896cb@news.frii.com...
> Reimar Bauer (r.bauer@fz-juelich.de) writes:
>
>> You should use /CELL_FILL instead of /FILL with maps.
>
> Oh, right. Well, there you go! I learn something
> new nearly every day with IDL. :-)
>
> Thanks, Reimar.
>
> 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: disappearing text - online help widget
Next Topic: OBJECT GRAHPIC BOOKS

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:28:24 PDT 2025

Total time taken to generate the page: 0.00464 seconds