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

Home » Public Forums » archive » Input buffer limits
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
Input buffer limits [message #4425] Wed, 31 May 1995 00:00 Go to next message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
I just ran into the 2048-byte input buffer limit and I can't remember
whether there are any suggested workarounds.

I'm trying to read an ASCII file with long records, and the error message is

IDL> openr, 11, '94065V22.A01'
IDL> x = FLTARR(1000)
IDL> readf, 11, x
% Input line is too long for input buffer of 2048 characters.
% READF: Error encountered reading from file. Unit: 11
File: 94065V22.A01
% Execution halted at $MAIN$ (READF).


Any suggestions?

Thanks, Ken Bowman

--
Dr. Kenneth P. Bowman 409-862-4060
Associate Professor 409-862-4132 fax
Climate System Research Program bowman@csrp.tamu.edu
Department of Meteorology PP-Glider
Texas A&M University
College Station, TX 77843-3150
Re: Input buffer limits [message #4506 is a reply to message #4425] Wed, 14 June 1995 00:00 Go to previous message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
Serdar Manizade <manizade@aol3.wff.nasa.gov> writes:

> I too have hit the ascii buffer input limit. I solved the problem by
> changing the problem: i.e. rewrote the input data to use shorter lines.
> Thoroughly unsatisfying. Any other solutions out there?
> serdar.manizade@gsfc.nasa.gov http://aol16.wff.nasa.gov/~manizade/

I just got a new IDL newsletter from RSI (V. 5, No. 1). On page 10 it
says that in IDL 4.0 the OPEN routine now accepts a BUFSIZE keyword, which
lets you set the buffer size. We haven't installed 4.0 yet, so I haven't
been able to look at the docs or try it out.

Ken Bowman

--
Dr. Kenneth P. Bowman 409-862-4060
Associate Professor 409-862-4132 fax
Department of Meteorology bowman@csrp.tamu.edu
Texas A&M University PP-Glider
College Station, TX 77843-3150
Re: Input buffer limits [message #4512 is a reply to message #4425] Wed, 14 June 1995 00:00 Go to previous message
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
Serdar Manizade <manizade@aol3.wff.nasa.gov> writes:

> I too have hit the ascii buffer input limit. I solved the problem by
> changing the problem: i.e. rewrote the input data to use shorter lines.
> Thoroughly unsatisfying. Any other solutions out there?
> serdar.manizade@gsfc.nasa.gov http://aol16.wff.nasa.gov/~manizade/

Try reading the data as a byte array, then converting to string.
You can get strings up to 65534 characters long this way (not 65535,
probably due to a null character needed as a delimiter).

Ray Sterner sterner@tesla.jhuapl.edu
The Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
WWW Home page: ftp://fermi.jhuapl.edu/www/s1r/people/res/res.html
Re: Input buffer limits [message #4522 is a reply to message #4425] Tue, 13 June 1995 00:00 Go to previous message
Serdar Manizade is currently offline  Serdar Manizade
Messages: 15
Registered: December 1994
Junior Member
I too have hit the ascii buffer input limit. I solved the problem by
changing the problem: i.e. rewrote the input data to use shorter lines.
Thoroughly unsatisfying. Any other solutions out there?
serdar.manizade@gsfc.nasa.gov http://aol16.wff.nasa.gov/~manizade/

bowman@csrp.tamu.edu (Kenneth P. Bowman) wrote:
> I just ran into the 2048-byte input buffer limit and I can't remember
> whether there are any suggested workarounds.
>
> I'm trying to read an ASCII file with long records, and the error message is
>
> IDL> openr, 11, '94065V22.A01'
> IDL> x = FLTARR(1000)
> IDL> readf, 11, x
> % Input line is too long for input buffer of 2048 characters.
> % READF: Error encountered reading from file. Unit: 11
> File: 94065V22.A01
> % Execution halted at $MAIN$ (READF).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: post script printing
Next Topic: Generating MPEG with WAVE

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

Current Time: Wed Oct 08 17:38:59 PDT 2025

Total time taken to generate the page: 0.00514 seconds