This commit is contained in:
Roman Krivonos
2024-09-11 10:05:15 +03:00
parent 0dcf1178cc
commit 462133ce2e
20 changed files with 108 additions and 10 deletions

View File

@@ -26,7 +26,9 @@ fn="detcnts.E13.ALL.resid.galprof.fits"
dat = Table.read(profdir+fn, unit_parse_strict='silent')
df3 = dat.to_pandas().sort_values(by=['LON1'])
#df_cobe = pd.read_csv('../data/cobe_ibis_resp_lon.dat', header=None)
df_cobe = pd.read_csv('../data/cobe_ibis_resp_lon.dat', sep=' ', header=None)
print(df_cobe)
fig, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, figsize=(9, 7), dpi=100)
#fig.suptitle('Vertically stacked subplots')
@@ -65,6 +67,7 @@ ax2.yaxis.set_minor_locator(ticker.MultipleLocator(0.2))
ax3.yaxis.set_minor_locator(ticker.MultipleLocator(0.2))
lon=(df1['LON1']+df1['LON2'])/2
ax1.plot(df_cobe[0],df_cobe[2]/3, color='red', linewidth=4)
ax1.errorbar(lon, df1['GRXE_SIM_FLUX']/scale,
yerr=df1['GRXE_SIM_ERROR']/scale,
xerr=(df1['LON2']-df1['LON1'])/2,