Writting intoFile [message #92755] |
Thu, 25 February 2016 05:23  |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
Hello all,
I am dealing with an array say: A FLOAT [2094,5]
I want to write this array into a file using IDL how should I do that???
Also In second part I want 2094 rows to be saved into another file as a column.
Can anyone help me in this?
Thanks and regards,
Sapna
|
|
|
|
|
Re: Writting intoFile [message #92758 is a reply to message #92757] |
Thu, 25 February 2016 10:31   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello,
On 02/25/16 13:24, Sapna Mishra wrote:
> Yes I am doing the same,
>
> IDL> a=mrdfits('2QZJ0234_CHIP1_GRIS_600V_SCIENCE_SKY_SPECTRUM_FOR S1.2007_11_12T05_08_04.084redwave.fits',0,h)
> MRDFITS: Image array (2094,5) Type=Real*4
> IDL>fname='data1.dat'
> IDL> OPENW,1,fname
> IDL> PRINTF,a
> then i am getting error:
> % PRINTF: Expression must be a scalar or 1 element array in this context: A.
> % Execution halted at: $MAIN$
>
> I don't know how to solve this error. Any idea??
Yes. It is a syntax error.
See http://www.harrisgeospatial.com/docs/PRINT.html
cheers,
paulv
|
|
|
|
|