(readLog-test1.py)
#!/usr/bin/env python
"""
2012-05-25
cp ‾/2012FY/clusters/A2319/20120410/region-0416/readLog-fit1.pl .
"""
import sys
debug = "### debug"
x_xis0=[0,0]
for line in sys.stdin:
# print debug, line,
lines = line.split()
# print debug, lines[0]
if "4 2 apec Redshift" in line:
x_xis0[0] = lines[5]
print debug, line, x_xis0[0]
if "9 2 apec Redshift" in line:
x_xis0[1] = lines[5]
print debug, line, x_xis0[1]
print "x_xis0 is", x_xis0[0],x_xis0[1]
0 件のコメント:
コメントを投稿