Re: reading in a long line of data [message #60277 is a reply to message #60276] |
Thu, 08 May 2008 10:14   |
teich
Messages: 33 Registered: May 2007
|
Member |
|
|
On May 8, 1:08 pm, David Fanning <n...@dfanning.com> wrote:
> te...@atmsci.msrc.sunysb.edu writes:
>> Sorry, maybe I should have been more explicit.
>
> Well, only if you want a sensible answer to your question. :-)
>
>> The data is not
>> unformatted but I tried that because otherwise I get an error messege:
>
>> Input line is too long for input buffer of 32767 characters.
>
>> Ben, thanks for your suggestion, but I also get that error messege
>> trying your suggestion.
>
>> To be more explicit, each line of data looks something like this
>> (where there are 2520 columns):
>
>> 1.0117065e+003 1.0114794e+003 1.0112352e+003 1.0110832e+003
>> 1.0109401e+003 ...
>
> Try this then:
>
> Openr, lun, 'yourdatafile.dat', /Get_Lun
> data = fltarr(2520)
> ReadF, lun, data
> Free_lun, lun
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
That's typically what I do. I think the version of IDL I am using
doesn't like this because the line of data is too long so I still get
the same error.
|
|
|