Re: Size limit on ASCII output files? [message #26415] |
Wed, 29 August 2001 13:02 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Barry Lesht (bmlesht@anl.gov) writes:
> I was just trying to generate an ASCII file using PrintF and found that
> my system seems to limit the size of the output file to 64K (65536
> characters). The file I produced was incomplete; changing the output
> format results in a different incomplete file, but one still 65536
> characters long. I was doing this interactively using:
>
> IDL> OpenW, lun, 'output.dat', /Get_LUN
> IDL> ulim = N_Elements(t)-1
> IDL> FOR i=0, ulim, DO PrintF, t(i), v1(i), v2(i), v3(i), v4(i),
> Format='(5f10.5)'
> IDL> Close, lun
> IDL> Free_LUN, lun
> IDL> Spawn, 'ls -l output.dat'
> -rw-r--r-- 1 blesht user 65536 Aug 29 14:11 sedmodin.dat
>
> The vectors are several thousand elements long. I'm using IDL5.4 under
> IRIX6.5.12. Does anyone know if this is an IDL problem that can be
> addressed with some option or keyword I haven't found or a unix (IRIX)
> related problem? Thanks.
Uh, I'd make your loop index a long integer. :-)
FOR I=0L, ulim, etc.
Cheers,
David
P.S. Let's just say after you have been bitten by this
snake three or four times, you tend to remember. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|