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
Formatted read of text file [message #9154] Wed, 11 June 1997 00:00 Go to previous message
dione is currently offline  dione
Messages: 1
Registered: June 1997
Junior Member
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
.
.
.

So my question is a two-parter.

First, how to I skip the first two lines of this file?

Second, what is proper way to do a formatted read of each of the 6 columns in
the remaining rows? I would like to have each column value put into its
own array so I can then plot/print out each column individually.

My guess is that I have to use and OPENR first to open the file, but that
may not even be the best way to do it.

Much Thanks,

--
+----------------------------------------------------------- ------------------+
Matthew Cheselka, Philomat Center for Astronomical Adaptive Optics
internet: dione@as.arizona.edu Steward Observatory
wk: (520) 621-1624 hm: (520) 575-0992
http://aquarius.as.arizona.edu:8080
[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 15:34:44 PDT 2025

Total time taken to generate the page: 0.00448 seconds