Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: reading in ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 15 Topic 5720 of 5734
Post > Topic >>

Re: reading in a long line of data

by teich@[EMAIL PROTECTED] May 8, 2008 at 10:14 AM

On May 8, 1:08=A0pm, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
> te...@[EMAIL PROTECTED]
 writes:
> > Sorry, maybe I should have been more explicit. =A0
>
> 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 =A01.0114794e+003 =A01.0112352e+003 =A01.0110832e+003
> > 1.0109401e+003 ...
>
> Try this then:
>
> =A0Openr, lun, 'yourdatafile.dat', /Get_Lun
> =A0data =3D fltarr(2520)
> =A0ReadF, lun, data
> =A0Free_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.




 15 Posts in Topic:
reading in a long line of data
teich@[EMAIL PROTECTED]   2008-05-08 09:18:39 
Re: reading in a long line of data
"ben.bighair" &  2008-05-08 09:38:53 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-08 10:43:50 
Re: reading in a long line of data
teich@[EMAIL PROTECTED]   2008-05-08 09:56:57 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-08 11:08:22 
Re: reading in a long line of data
teich@[EMAIL PROTECTED]   2008-05-08 10:14:05 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-08 11:24:25 
Re: reading in a long line of data
Spon <christoph.blau@[  2008-05-09 04:15:44 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-09 07:28:32 
Re: reading in a long line of data
"edward.s.meinel@[EM  2008-05-09 07:03:03 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-09 08:26:37 
Re: reading in a long line of data
Spon <christoph.blau@[  2008-05-09 07:31:43 
Re: reading in a long line of data
David Fanning <news@[E  2008-05-09 08:37:37 
Re: reading in a long line of data
Spon <christoph.blau@[  2008-05-09 07:42:47 
Re: reading in a long line of data
Spon <christoph.blau@[  2008-05-11 01:14:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 21:07:45 CDT 2008.