generated from erosita/uds
update
This commit is contained in:
@@ -6,7 +6,7 @@ __copyright__ = "Space Research Institute (IKI)"
|
||||
from astropy.table import Table, Column
|
||||
from matplotlib import ticker
|
||||
import matplotlib.pyplot as plt
|
||||
import sys
|
||||
import sys, os
|
||||
|
||||
from ridge.utils import *
|
||||
from ridge.config import *
|
||||
@@ -14,15 +14,15 @@ from ridge.config import *
|
||||
|
||||
scale = 100.0
|
||||
|
||||
fn="detcnts.E01.ALL.resid.galprof.fits"
|
||||
fn="detcnts.A01.ALL.resid.galprof.fits"
|
||||
dat = Table.read(profdir+fn, unit_parse_strict='silent')
|
||||
df1 = dat.to_pandas().sort_values(by=['LON1'])
|
||||
|
||||
fn="detcnts.E14.ALL.resid.galprof.fits"
|
||||
fn="detcnts.A02.ALL.resid.galprof.fits"
|
||||
dat = Table.read(profdir+fn, unit_parse_strict='silent')
|
||||
df2 = dat.to_pandas().sort_values(by=['LON1'])
|
||||
|
||||
fn="detcnts.E13.ALL.resid.galprof.fits"
|
||||
fn="detcnts.A03.ALL.resid.galprof.fits"
|
||||
dat = Table.read(profdir+fn, unit_parse_strict='silent')
|
||||
df3 = dat.to_pandas().sort_values(by=['LON1'])
|
||||
|
||||
@@ -96,5 +96,10 @@ ax2.set_ylabel('GRXE flux, x100 mCrab',fontsize=14, fontweight='normal')
|
||||
#plt.xscale('linear')
|
||||
#plt.yscale('linear')
|
||||
|
||||
plt.savefig(profdir+'galprof.png', bbox_inches='tight')
|
||||
if not os.path.exists(figdir):
|
||||
os.makedirs(figdir)
|
||||
|
||||
filename=figdir+'galprof.png'
|
||||
plt.savefig(filename, bbox_inches='tight')
|
||||
plt.close(fig)
|
||||
print("Result is saved as {}".format(filename))
|
||||
|
Reference in New Issue
Block a user