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

Home » Public Forums » archive » Re: floating point array in a struct
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: floating point array in a struct [message #1065] Fri, 11 June 1993 03:55
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
In article <1v89mfINN1kt@senator-bedfellow.MIT.EDU> jabarone@athena.mit.edu (John A Barone) writes:
> I am trying to creat a struct in IDL that has as one of it's entries
> a one dimensional array of floating points - something like this:
>
> fooinstance = {fooinst, foo: 0b, $
> bar: 0d, $
> foobar: (1-D floating point array)}
>
> Is this possible and if so how do you do it?
>
> Thanks in advance,
>
> John Barone
> jabarone@athena.mit.edu
>
>

Just as you might suspect try:

fooinstance = {fooinst, foo: 0b, $
bar: 0d, $
foobar: fltarr(n)}

Where n is a number. Once it is defined, the float vector portion is fixed in
length forever.


--
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
Internet: zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681-0001
Packet: ko4lw@wb0tax.va.usa
[Message index]
 
Read Message
Previous Topic: [Q] IDL Widgets: small button? Pull Down list?
Next Topic: Re: [Q] IDL Widgets: small button? Pull Down list?

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

Current Time: Sat Oct 11 04:26:06 PDT 2025

Total time taken to generate the page: 1.28501 seconds