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 #9251 is a reply to message #9154] Sun, 15 June 1997 00:00 Go to previous messageGo to previous message
Vibor Paravic is currently offline  Vibor Paravic
Messages: 7
Registered: June 1997
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
> .
> .
> .
>

Matthew,

I do not program in IDL but in Pv-Wave I would use the following code:

st = DC_READ_FREE(filename, col_1, col_2, col_3, col_4, col_5, col_6,
/col, Resize=[1,2,3,4,5,6], NSkip = 2)

you can also add a parameter which tells the function wha teh delimiter
is in you data
for example

Delim = [','] .. for comma delimited files

Vibor Paravic
Research Engineer
Institute of Orthopedic Research and Education
vparavic@bcm.tmc.edu
[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:18:27 PDT 2025

Total time taken to generate the page: 0.00471 seconds