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

Home » Public Forums » archive » size of a 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
size of a structure [message #7905] Mon, 27 January 1997 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
A couple of questions for y'all

1) What is the "length" of a struture in the help,/st mean? It's not
the "size" which is what I thought it was. i.e.

IDL> help,/st,info
** Structure DATA_INFO, 18 tags, length=124:
TYPE STRING 'GE'
PATH STRING
'/w/GEDB/GINX/GENESIS/MRS/710294/03075/005/'
SIZE LONG 138976
OFFSET LONG 7904
DATATYPE STRING '_16BIT_SGN_INT'
TE FLOAT 15.0000
TR FLOAT 24.0000
MATRIX INT Array(3)
FOV FLOAT Array(3)
PXLSZ FLOAT Array(3)
SCANTIME FLOAT 0.00000
IMAGETIME FLOAT 56.2200
NAME STRING 'xxxxxxxxx,xxxxxxx'
STUDY_NUMBER LONG 3075
PAT_ID STRING '710294'
AGE STRING 'x xxxxx'
SEX STRING 'female'
MASS STRING '15.8760 kg'
IDL> openw,1,'test.dat'
IDL> writeu,1,info
IDL> close,1
IDL> openr,1,'test.dat'
IDL> s = fstat(1)
IDL> print,s.size
162

2) Is there a way, besides brute force, to determine the size of a
structure w/in a procedure?

Thanks for your time,
Phil.

BTW, I've updated some of my routines on my webpage. Please check them
out when you get a chance: www.irc.chmcc.org/idl/philsIDL.html

--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Title , multiple Plot in IDL
Next Topic: Re: KILL_NOTIFY Programs

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

Current Time: Wed Oct 08 17:00:22 PDT 2025

Total time taken to generate the page: 0.00422 seconds