Re: floating point array in a struct [message #1065] |
Fri, 11 June 1993 03:55 |
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
|
|
|