From 564c9c4de6df9f4fdb00686828a115548c730229 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 7 Jun 2016 19:07:13 +0800 Subject: Merge analyze_{lf}x.py => analyze_lxfx.py and update. * Merge analyze_{lf}x.py => analyze_lxfx.py * Update analyze_lxfx.py to use arguments * Update calc_lxfx.sh accordingly * Add "output" comments to calc_lxfx.sh --- mass_profile/analyze_lx.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 mass_profile/analyze_lx.py (limited to 'mass_profile/analyze_lx.py') diff --git a/mass_profile/analyze_lx.py b/mass_profile/analyze_lx.py deleted file mode 100755 index c3d4030..0000000 --- a/mass_profile/analyze_lx.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import sys -import math -import numpy - -lx1_array=[] -lx2_array=[] -lx3_array=[] -for i in open('summary_lx.dat'): - x1,x2,x3=i.split() - x1=float(x1) - x2=float(x2) - x3=float(x3) - lx1_array.append(x1) - lx2_array.append(x2) - lx3_array.append(x3) - - -lx1_array=numpy.array(lx1_array) -lx2_array=numpy.array(lx2_array) -lx3_array=numpy.array(lx3_array) - - -f=open('lx_result.txt','w') -f.write("Lx(bolo)= %4.2E +/- %4.2E erg/s\n"%(lx1_array[0],lx1_array.std())) -print("Lx(bolo)= %4.2E +/- %4.2E erg/s"%(lx1_array[0],lx1_array.std())) -f.write("Lx(0.7-7)= %4.2E +/- %4.2E erg/s\n"%(lx2_array[0],lx2_array.std())) -print("Lx(0.7-7)= %4.2E +/- %4.2E erg/s"%(lx2_array[0],lx2_array.std())) -f.write("Lx(0.1-2.4)= %4.2E +/- %4.2E erg/s\n"%(lx3_array[0],lx3_array.std())) -print("Lx(0.1-2.4)= %4.2E +/- %4.2E erg/s"%(lx3_array[0],lx3_array.std())) - -- cgit v1.2.2