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

Home » Public Forums » archive » Writing 2D array to Text File
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
Writing 2D array to Text File [message #67763] Fri, 21 August 2009 10:56
vikramivatury is currently offline  vikramivatury
Messages: 24
Registered: May 2009
Junior Member
Hello IDL Gurus,

I would like to write a 2D array that I have [120,120], to a text
file. When I write the array out now, everything appears in 1 column
with 14400 rows:

for i = 0,119 do begin
for j = 0,119 do begin
PRINTF,lun,array[i,j]
endfor
endfor

Is there anyway that I can format my PRINTF to print 120 columns and
120 rows, for viewing in Excel. Any ideas?

Thanks,
Vikram
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Saved Object Question
Next Topic: Bus Error on Mac when TVRD() is called in IDL 6.4

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

Current Time: Wed Oct 08 15:48:20 PDT 2025

Total time taken to generate the page: 0.20739 seconds