[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


N_STRUCT Source code in n_struct.pro

N_STRUCT

Name
       N_STRUCT
Purpose
       To determine if variable is a structure and return number of elements.
Calling Sequence
       n = N_struct( var, ntags )
Input Parameters
       var = any variable.
Output Parameters
       ntags = number of structure tags.
Returns
       Returns zero if variable is not a structure, otherwise returns # elems.
Procedure
       Determine if argument is a structure by checking for # of tags.
       If structure, use size function to get # of elements
       (instead of N_elements) so that it works on I/O associated structures.
Revision History
       Written, Frank Varosi NASA/GSFC 1989.
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically