final
This commit is contained in:
parent
1f7815e0c5
commit
d13db7d42f
@ -75,7 +75,7 @@ outfile_srctool="{}_SrcTool_".format(outkey)
|
|||||||
|
|
||||||
do_init = False
|
do_init = False
|
||||||
do_merge = False
|
do_merge = False
|
||||||
do_srctool = False
|
do_srctool = True
|
||||||
do_grppha = False
|
do_grppha = False
|
||||||
do_ecf_calc = False # for all bands
|
do_ecf_calc = False # for all bands
|
||||||
do_ecf_print = False # for all bands
|
do_ecf_print = False # for all bands
|
||||||
@ -94,12 +94,12 @@ do_xmm_final = False
|
|||||||
do_xmm_xmatch = False
|
do_xmm_xmatch = False
|
||||||
do_xmm_ds9reg = False
|
do_xmm_ds9reg = False
|
||||||
do_xmm_cds = False
|
do_xmm_cds = False
|
||||||
do_euds_cosmatch = True
|
do_euds_cosmatch = False
|
||||||
|
|
||||||
do_cross_check = False # Check whether all E3,E6 sources are detected in E0
|
do_cross_check = False # Check whether all E3,E6 sources are detected in E0
|
||||||
|
|
||||||
|
|
||||||
index=0
|
index=5
|
||||||
""" чтобы спектры покрывали все энергии работаем в диапазоне 5 """
|
""" чтобы спектры покрывали все энергии работаем в диапазоне 5 """
|
||||||
|
|
||||||
vign=True
|
vign=True
|
||||||
@ -154,21 +154,23 @@ if not (os.path.isfile(catprep)==True):
|
|||||||
if(do_srctool==True):
|
if(do_srctool==True):
|
||||||
test_exe('srctool')
|
test_exe('srctool')
|
||||||
cmd=['srctool',
|
cmd=['srctool',
|
||||||
|
"todo=\'SPEC RMF ARF\'",
|
||||||
"insts=\'1 5 6 7\'",
|
"insts=\'1 5 6 7\'",
|
||||||
"eventfiles={}".format(outfile_evtool),
|
"eventfiles={}".format(outfile_evtool),
|
||||||
"prefix=\'{}\'".format(os.path.join(srctool_dir,outfile_srctool)),
|
"prefix=\'{}\'".format(os.path.join(srctool_dir,outfile_srctool)),
|
||||||
"suffix=\'{}\'".format(suffix_srctool),
|
"suffix=\'{}\'".format(suffix_srctool),
|
||||||
"srccoord={}".format("../products/eUDS_for_srctool.fits"),
|
"srccoord={}".format("../products/eUDS_for_srctool_test.fits"),
|
||||||
# the same as original file eUDS.fits, but changed ML_CTS --> ML_CTS_0, ML_BKG --> ML_BKG_0, ML_EXP --> ML_EXP_0
|
# the same as original file eUDS.fits, but changed ML_CTS --> ML_CTS_0, ML_BKG --> ML_BKG_0, ML_EXP --> ML_EXP_0
|
||||||
#"srcreg=\'fk5;circle * * 60s\'",
|
#"srcreg=\'fk5;circle * * 60s\'",
|
||||||
#"backreg=\'fk5;annulus * * 90s 120s\'",
|
#"backreg=\'fk5;annulus * * 90s 120s\'",
|
||||||
"srcreg=AUTO",
|
"srcreg=AUTO",
|
||||||
"backreg=AUTO",
|
"backreg=AUTO",
|
||||||
"clobber=yes",]
|
"clobber=yes",]
|
||||||
print((" ").join(cmd))
|
#print((" ").join(cmd))
|
||||||
#os.system((" ").join(cmd))
|
#os.system((" ").join(cmd))
|
||||||
#print((" ").join(cmd))
|
#print((" ").join(cmd))
|
||||||
|
runme(cmd, local_run=True)
|
||||||
|
|
||||||
if(do_grppha==True):
|
if(do_grppha==True):
|
||||||
group_spectra("{}/*020_SourceSpec_*.fits".format(srctool_dir))
|
group_spectra("{}/*020_SourceSpec_*.fits".format(srctool_dir))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user