Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
N_STRUCT
To determine if variable is a structure and return number of elements.
n = N_struct( var, ntags )
var = any variable.
ntags = number of structure tags.
Returns zero if variable is not a structure, otherwise returns # elems.
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.
Written, Frank Varosi NASA/GSFC 1989. Converted to IDL V5.0 W. Landsman September 1997
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]