write 2D matrix [message #40301] |
Tue, 03 August 2004 21:12  |
Tmorri
Messages: 10 Registered: April 2004
|
Junior Member |
|
|
Hi, can anyone tell me how to write a 2D array (1080x540)into an IDL
variable in my hard disk?
Thanks,
Tmorri
|
|
|
Re: write 2D matrix [message #40450 is a reply to message #40301] |
Tue, 03 August 2004 21:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Tmorri writes:
> Hi, can anyone tell me how to write a 2D array (1080x540)into an IDL
> variable in my hard disk?
Say what!?
How about:
SAVE, array
Or:
OpenW, lun, 'myarray.dat', /Get_Lun
WriteU, lun, array
Free_Lun, lun
Or, if you are going the other way (I can't really
tell):
OpenR, lun, 'whateveritscalled.dat', /Get_Lun
array = BytArr(1080,540)
ReadU, lun, array
Free_Lun, lun
That about covers the usual suspects. Any of those
do it for you?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|