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

Home » Public Forums » archive » extract an array from an structure
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
extract an array from an structure [message #89734] Mon, 24 November 2014 10:40 Go to next message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
Hi
I have an array inside an structure that I obtain using READ_ASCII
how can I just extract this data into an Floating array?

thank you
Re: extract an array from an structure [message #89735 is a reply to message #89734] Tue, 25 November 2014 03:07 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 24.11.2014 19:40, lucesmm@gmail.com wrote:
> Hi
> I have an array inside an structure that I obtain using READ_ASCII
> how can I just extract this data into an Floating array?
>
> thank you
>

Hi,

IDL> st = {field:FLTARR(3)}
IDL> help, st
** Structure <628cb278>, 1 tags, length=12, data length=12, refs=1:
FIELD FLOAT Array[3]
IDL> help, st.field
<Expression> FLOAT = Array[3]
IDL> array = st.field
IDL> print, array
0.00000 0.00000 0.00000


cheers,

Fabien
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: gray-level co-occurrence matrix (GLCM)
Next Topic: get lat/lon from modis SIN grid

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

Current Time: Wed Oct 08 15:34:06 PDT 2025

Total time taken to generate the page: 0.00512 seconds