Re: reading in a long line of data [message #60281 is a reply to message #60280] |
Thu, 08 May 2008 09:43   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
teich@atmsci.msrc.sunysb.edu writes:
> Hi, I am trying to read in a long line which has around 2520 values
> all in scientific notation (ie 1.2E+02, etc). I tried the following:
>
> x=strarr(2520)
> x[*]='12345678'
> readu,unit,x
>
> Then converting to floating point. This doesn't seem to work since
> the data is in scientific notation. Does anyone have any suggestions?
I would suggest less fuzzy thinking. :-)
What is a "line" of data? Computers don't do
"around" or "about" anything. They are like
children. They have to be told explicitly.
Cheers,
David
P.S. Do you know anything more exact about this data?
Do you know, for example, if it is really saved in
an unformatted data file?
--
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.")
|
|
|