How to EXTRACT just a numerical part of a data file ( .dat)?
- To: mathgroup at smc.vnet.net
- Subject: [mg42184] How to EXTRACT just a numerical part of a data file ( .dat)?
- From: aw247 at cornell.edu (ava)
- Date: Sat, 21 Jun 2003 20:57:02 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I have a file that kinda look like: Input file :freq_map.in beta_x = 0.427 alpha_x = 0.2705 beta_y = 0.011 alpha_y = -0.0055 eta_x = 0.011 eta_xp = -0.0035 eta_y = 0.000 eta_yp = 0.0143 ! phase space at IP at start phase space at IP at turn n x xp y yp dl dE/E turn x xp y yp dl dE/E 0.2000E-02 0.0000E+00 0.2000E-02 0.0000E+00 0.0000E+00 0.5000E-03 1 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.2000E-02 0.0000E+00 0.2000E-02 0.0000E+00 0.0000E+00 0.5000E-03 2 -0.4532E-03 0.6929E-02 -0.1514E-05 0.4522E-03 -0.9280E-03 0.2125E-04 ... I just want the columns of numbers for data analysis so that i will have a table with columns of numbers. i don't need all the other characters. I know i should use ReadList[], but i have no idea how to do so. Any help would be appreciated. Thanks.