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

Home » Public Forums » archive » NLEVELS doesn't necessarily mean NLEVELS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
NLEVELS doesn't necessarily mean NLEVELS [message #14928] Mon, 12 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Hi Folks,

In playing around with filled contours for a couple of new
articles I put up on my web page recently I encountered
an interesting problem. I took a simple data set from the
LoadData program you can find on my web page:

peak = LoadData(1)

Then I did this:

Contour, peak, NLevels=12

But what I noticed was that IDL was actually drawing only
9 contour levels, not 12. Humm.

I contacted RSI technical support and learned that contrary
to what the IDL documentation claims, the NLEVELS keyword
does not divide the data range into "this number of equally
spaced contour intervals". Rather, this is taken as a
(I'm not kidding) "suggestion" to the CONTOUR command, and
the CONTOUR command can apparently do what it likes with the
suggestion. Including, as I understand it, put it where the
sun don't shine.

I'm told by technical support that if I really want 12 contour
levels I can either calculate them myself (yes, I knew this,
which is the *point* of my two articles) or I could increase
the number of levels with the NLEVELS keyword. He didn't have
a suggestion as to what I should increase the number *to* in
order to get 12 levels, but presumably a number between 12 and
20 would do it. :-(

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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Joining comp.lang.idl-pvwave
Next Topic: Re: Do sav files have only 256 colors

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

Current Time: Fri Oct 10 04:20:25 PDT 2025

Total time taken to generate the page: 2.80059 seconds