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

Home » Public Forums » archive » How to extract data from an anonymous strucure into a float array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to extract data from an anonymous strucure into a float array? [message #47894] Fri, 17 March 2006 15:38
haili.wang is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RSINC web mini-bug ??
Next Topic: Re: How to extract data from an anonymous strucure into a float array?

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

Current Time: Fri Oct 10 05:23:01 PDT 2025

Total time taken to generate the page: 0.15963 seconds