| Re: xpalette -> error messages [message #18123 is a reply to message #18107] |
Sat, 27 November 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Dominik Brunner (dbrunner@dbrunner.demon.nl) writes:
> I am using IDL extensively for contour plots on maps.
> Often I would like to change the contour colors using xpalette.
> The problem is now that changing a color or interpolating between colors
> generates hundreds of error meassages stating that some points are
> out of lat/lon range. Why is this and how can I turn this off?
Whatever this is, it is NOT because you are changing
colors. :-)
Rather, I suspect some kind of programming error. How
exactly are you trying to use XPalette to change colors
in your contour plot? Is this in a widget program? Do
you leave XPalette on the display, while you try
to change colors? I suspect this is probably the
case.
I'm going to guess, in the absence of any evidence,
that you are overplotting something onto your map
display while XPalette is still on the display.
What I think is happening is that you are using the
axes ranges determined by the graphic displays in
XPalette rather than the axes ranges determined by
your map projection. If this is the case, simply
save the axes ranges and restore them before you
try to overplot. Typically with this kind of
application you save !X, !Y, !P, and !Map. You
probably don't need them *all*, but in this case
overkill usually solves more problems than it
creates. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|