This commit is contained in:
2024-11-01 15:53:03 +03:00
parent 436e2aba84
commit bb388de4e4
5 changed files with 15 additions and 76 deletions

View File

@@ -41,10 +41,11 @@ if not skey in skyreg.keys():
sys.exit()
key = "ALL"
fn='detcnts.{}.{}.resid.fits'.format(enkey,key)
d = fits.getdata(proddir+fn)
df=pd.DataFrame(np.array(d).byteswap().newbyteorder())
fn="detcnts.{}.{}.resid.fits".format(enkey,key)
print("Reading {}".format(proddir+fn))
dat = Table.read(proddir+fn, unit_parse_strict='silent')
df = dat.to_pandas()
n_bins = 60