size of a structure [message #7905] |
Mon, 27 January 1997 00:00  |
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/
/*********************************************************** ********/
|
|
|