generated from erosita/uds
July
This commit is contained in:
@@ -41,7 +41,7 @@ enkey = sys.argv[1]
|
||||
sigma=3
|
||||
|
||||
# for these bands, slope is taken from stacked profile
|
||||
fixed_slope = ['E04','E05','E06','E07','E08','E09','E10','E11','E12','E15',
|
||||
fixed_slope = ['E04','E05','E06','E07','E08','E09','E10','E11','E12','E13','E14','E15',
|
||||
'A02','A03','A04','A05','A06','A07','A08','A09','A10','A11',
|
||||
'B02','B03','B04','B05','B06','B07','B08','B09','B10','B11','B12','B13','B14','B15','B16','B17','B18','B19','B20','B21']
|
||||
|
||||
@@ -49,7 +49,7 @@ fixed_slope = ['E04','E05','E06','E07','E08','E09','E10','E11','E12','E15',
|
||||
free_slope = ['E01', 'E02', 'E03', 'A01','B01']
|
||||
|
||||
# for these bands, slope is fixed at constant (or if positive, which is not allowed)
|
||||
const_slope = ['E10','E11','E12','A10','A11','B18','B19','B20','B21']
|
||||
const_slope = ['E10','E11','E12','E13','E14','E15','A10','A11','B18','B19','B20','B21']
|
||||
|
||||
# for stacked profile, skip orbits>800 for energy channels <30 keV
|
||||
skip800 = ['E02','E03','A01','B01']
|
||||
@@ -63,10 +63,6 @@ fn="detcnts.{}.fits".format(enkey)
|
||||
with open(proddir+fn.replace(".fits",".ignored_scw.pkl"), 'rb') as fp:
|
||||
ignored_scw = pickle.load(fp)
|
||||
|
||||
#d = fits.getdata(datadir+fn)
|
||||
#df=pd.DataFrame(np.array(d).byteswap().newbyteorder())
|
||||
#print(df.columns)
|
||||
|
||||
with fits.open(datadir+fn) as data:
|
||||
df = pd.DataFrame(data[1].data)
|
||||
|
||||
@@ -115,17 +111,19 @@ for rev in range(revmin,revmax):
|
||||
if(rev > 800):
|
||||
continue
|
||||
|
||||
#if(rev > 1000):
|
||||
# continue
|
||||
df0 = df.query('SRC > 0.0 & REV == {} & PHASE > {} & PHASE < {} & CRAB_SEP < {}'.format(rev,phmin,phmax,crab_sep_max))
|
||||
nobs=len(df0)
|
||||
if not (nobs> crab_nmax):
|
||||
continue
|
||||
|
||||
print(rev,nobs)
|
||||
|
||||
for n in df0['CRAB_SEP'].values:
|
||||
totx.append(n)
|
||||
|
||||
for n in df0['SRC'].values:
|
||||
toty.append(n)
|
||||
|
||||
#if(np.min(df0['SRC'])<1e-3):
|
||||
# print(rev)
|
||||
# sys.exit()
|
||||
|
Reference in New Issue
Block a user