Re: xpalette -> error messages [message #18107] |
Mon, 29 November 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Dominik Brunner (brunner@knmi.nl) writes:
>> Rather, I suspect some kind of programming error.
>
> No, I am not doing anything unusual. A simple example:
>
> Start IDL then execute:
>
> map_set,/continents
> xpalette
>
> Then moving one of the red,green,blue sliders in the xpalette
> widget produces hundreds of the following messages:
>
> % OPLOT: Value of Latitude is out of allowed range.
> % OPLOT: Value of Latitude is out of allowed range.
> % OPLOT: Value of Latitude is out of allowed range.
> % OPLOT: Value of Latitude is out of allowed range.
> .....
>
> I am using IDL 5.2 on an SGI workstation running IRIX 6.5 but I
> saw this also on a SUN.
> Any suggestions what causes this problem?
Oh, sorry, Dominik. Did you think I meant *your*
programming error!? No indeed. I think there is
an error in XPalette. :-)
I've done a quick look and it seems to me the problem
is in the internal routine COLOR_CONVERT, although I
can't imagine why this should be so. But I stand by
my earlier theory that the problem is some assumption
about the state of system variables. I think you need
to ask RSI for help in this case.
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
|
|
|
Re: xpalette -> error messages [message #18109 is a reply to message #18107] |
Mon, 29 November 1999 00:00  |
Dominik Brunner
Messages: 4 Registered: November 1999
|
Junior Member |
|
|
David Fanning wrote:
>
> 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.
No, I am not doing anything unusual. A simple example:
Start IDL then execute:
map_set,/continents
xpalette
Then moving one of the red,green,blue sliders in the xpalette
widget produces hundreds of the following messages:
% OPLOT: Value of Latitude is out of allowed range.
% OPLOT: Value of Latitude is out of allowed range.
% OPLOT: Value of Latitude is out of allowed range.
% OPLOT: Value of Latitude is out of allowed range.
.....
I am using IDL 5.2 on an SGI workstation running IRIX 6.5 but I
saw this also on a SUN.
Any suggestions what causes this problem?
Regards,
Dominik
--
+
{|||}
=======
K N M I
=======
======================= ======================
Dr. Dominik Brunner ///-- --\\\
KNMI ( Royal Netherlands | [*] [*] |
Meteorological Institute ) [| |]
Section of Atmospheric Composition | (_) |
P.O. Box 201, 3730 AE De Bilt \ \___/ /
The Netherlands \ _ /
E-mail brunner@knmi.nl
http://www.knmi.nl/~brunner/
Tel. -31-30-2206422 (direct) or -31-30-2206911
Fax -31-30-2210407
Visiting address: Wilhelminalaan 10, De Bilt
======================================================
|
|
|
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
|
|
|