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

Home » Public Forums » archive » Re: Unhelpful Help Messages
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: Unhelpful Help Messages [message #67824 is a reply to message #67806] Thu, 27 August 2009 06:58 Go to previous messageGo to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Aug 27, 12:22 am, David Fanning <n...@dfanning.com> wrote:

> Having spent more time this week than I wanted to learning
> that "too many array elements" really means "you are
> *totally* confusing me with that binsize that isn't
> really a number", I thought I might work on an article
> this weekend on "Unhelpful Help Messages".

IDL> a = findgen(10)
IDL> b = a[10]
% Attempt to subscript A with <LONG ( 10)> is out of
range.

IDL> b = a[0:10]
% Subscript range values of the form low:high must be >= 0, < size,
with low <= high: A.

The first message is OK, I get the array, and the value that is wrong.
The second message is slightly less helpful, as you don't get
information which boundary is out of range. Here it isn't too bad, but
if you use the following in a function call (i.e. more than one on a
line), then things do get confusing:

IDL> a = {a:findgen(10), b:findgen(10)}
IDL> c = a.a[0:10]
% Subscript range values of the form low:high must be >= 0, < size,
with low <= high: <No name>.

Maarten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl 7
Next Topic: display polygon on the image

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

Current Time: Sat Oct 11 02:44:44 PDT 2025

Total time taken to generate the page: 0.88026 seconds