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

Home » Public Forums » archive » Re: pc readf
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
Re: pc readf [message #8267] Fri, 21 February 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
> input line is too long for input buffer.

I just thought of something else you could try. If the file is
not *too* big, you can try changing the input butter size.
This is set with the BUFSIZE keyword to the OPENR command.

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
Re: pc readf [message #8268 is a reply to message #8267] Fri, 21 February 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Duncan E Farrow <farrow@prodigal.murdoch.edu.au> writes:

> I'm trying to read in ascii data generated by SUN fortran
> & IDL 3.6.1 readf command comes up against
>
> input line is too long for input buffer.
>
> complication:...I only get this error when the file
> is brought over on a mac before arriving on the
> pc....does this transfer not include a LF or CR?
>
> is there a end-machine solution or will I have
> to re-transfer all files?

This is due to a difference in the way Macs and
PCs deal with ASCII or text files. Usually the
software you use to make the transfer (I use
MacLink Plus or Fetch) is smart enough to do
the conversion for you. (Sometimes they must
be configured to do this.)

You could probably muck about with the information
now that you have it (read it into a byte array,
look for LF characters, add a CR, reformat, etc.), but this
is probably more headache than it is worth. I
think it might be faster just to go back and make
the transfer correctly.

Cheers!

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Map_Set Question
Next Topic: digital phantom

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

Current Time: Wed Oct 08 17:18:58 PDT 2025

Total time taken to generate the page: 0.00515 seconds