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

Home » Public Forums » archive » Re: help & help,/structure
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: help & help,/structure [message #72205 is a reply to message #72204] Fri, 13 August 2010 13:37 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Fri, 13 Aug 2010 11:59:58 -0700 (PDT), wlandsman wrote:

> A documented new feature of HELP,/STRUCTURE in IDL 8.0 has caused me
> a minor annoyance: According to the online help:
>
> "If a single argument is provided to HELP, and it is a structure,
> then HELP will automatically display the structure information without
> having to set the /STRUCTURE keyword."
>
> But I think this means that I can no longer use HELP to determine
> the number of elements in a structure array. In IDL 7.1 I could
> write
>
> IDL> print,!version
> { x86 linux unix linux 7.1.1 Aug 19 2009 32 64}
> IDL> help,tab
> TAB STRUCT = -> <Anonymous> Array[58]
>
> to determine that it has 58 elements. But in IDL 8.0, I get
> information about the structure but no information about the number of
> elements it contains... I have to print,N_Elements(tab) . --Wayne
>
> IDL> print,!version
> { x86 linux unix linux 8.0 Jun 18 2010 32 64}
>
> IDL> help,tab
> ** Structure <a065d74>, 21 tags, length=168, data length=162, refs=1:
> OBS_ID STRING '00031688021 '
> EXTNAME STRING 'uu297081092I '
> ASPCORR INT 0
> FILTER STRING 'U '
> TSTART DOUBLE 2.9708109e+08

I had that problem too, played a while arround, and found that
help,names='tab' is doing the trick.

Shorter, but a little bit uggly: help,tab,''

help,tab,structures=0 unexspectedly does not work ;-)

Would really be nice, to have the dimension information within the
header line of the help,tab output.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Non-uniform FFT?
Next Topic: IDL 8 GUI won't save all overplots on one image...help!!

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

Current Time: Thu Oct 09 14:09:42 PDT 2025

Total time taken to generate the page: 1.28832 seconds