How to extract data from an anonymous strucure into a float array? [message #47894] |
Fri, 17 March 2006 15:38 |
haili.wang
Messages: 1 Registered: March 2006
|
Junior Member |
|
|
Hi IDL gurus,
I am new to the IDL world. Right now I am using DataMiner to get data
from a SQL server. After using the GetRecord method (e.g. I ran:
apdata=oRS->GetRecord() ), a record in the SQL table was in an
anonymous structure. Then, if I ran:
IDL> help, apdata,/structure
I will get the details of this structure like this:
** Structure <1724960>, 502 tags, length=2008, data length=2006,
refs=2:
AP_DATA_INDEX INT 22425
L4_AP_300_NM FLOAT 0.113780
L4_AP_301_NM FLOAT 0.108723
L4_AP_302_NM FLOAT 0.104307
......
......
I know it is easy to extract the filed names (the first column) to a
string array by:
names = TAG_NAME(apdata)
But the question is: is there a function to extract the data part (the
right column in the structure) into a FLOAT array?
Thanks for any hlep,
Hai-Li
|
|
|