Re: Teaching an Elephant to Dance [message #77567 is a reply to message #77565] |
Tue, 13 September 2011 13:01   |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On 9/12/2011 11:50 AM, David Fanning wrote:
>
> OK, now, you have this line of code with a comment:
>
> rgb_indices=bytscl(indgen(4))) ; this is a bug in 8.1
>
> Can you explain what this particular bug is? Or, provide
> a reference? I've come to the conclusion that this keyword
> doesn't work "correctly," but I haven't yet figured out
> what is wrong with it.
In 8.0, NG CONTOUR would automatically interpolate the indices of the
chosen color table, just like DG CONTOUR. This was broken in 8.1. The
workaround (which I've used above) is to use RGB_INDICES to tell CONTOUR
to interpolate the color table indices. This is CR 62414 & it's fixed in
8.2.
> [snip]
> be included in the contour levels? Is so, why doesn't this
> happen when you specify N_LEVELS?
I don't know! I don't use N_LEVELS because a really good IDL
programmer (with initials DF) taught me long ago to always calculate my
contour levels, a corollary of Dave Stern's maxim, "know your data."
:D <-- (that's a big smile)
mp
|
|
|