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

Home » Public Forums » archive » Formatted read of text file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Formatted read of text file [message #9286 is a reply to message #9154] Thu, 12 June 1997 00:00 Go to previous messageGo to previous message
Marty Ryba is currently offline  Marty Ryba
Messages: 16
Registered: May 1996
Junior Member
Matt Cheselka wrote:
> I have a file that contains row and column data like the following:
>
> # I E E_conv E_bl E_saa Resid_RMS
> # 0 3.512799e-05 3.512799e-05 0.000000e+00 0.000000e+00 3.512799e-05
> 1 1.445887e-05 1.445921e-05 0.000000e+00 0.000000e+00 1.445921e-05
> 2 7.363944e-06 7.364333e-06 0.000000e+00 0.000000e+00 7.364333e-06
> .

Matt (and any others):

You should really check out Fred Knight's DDREAD.PRO (available from
one of the FTP archives). It automatically parses the file, skips
comments, and loads the data in either a 2-d array or a array of
structures. You can pre-define the structure if you wish (so it will
have mneumonic names and the correct data types). Truly a must-have
general-purpose function.

--
Dr. Marty Ryba | Of course nothing I say here is official
MIT Lincoln Laboratory | policy, and Laboratory affililaton is
ryba@ll.mit.edu | for identification purposes only,
| blah, blah, blah, ...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image Object Scaling Bug
Next Topic: Matlab <--> PV-Wave ?

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

Current Time: Wed Oct 08 19:19:00 PDT 2025

Total time taken to generate the page: 0.00351 seconds