Skip to content

Commit

Permalink
Use original event file by default for timing
Browse files Browse the repository at this point in the history
and cleaned event file for spectroscopy
  • Loading branch information
evandromr committed Jan 22, 2015
1 parent f2e2b66 commit 01af9ef
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 15 deletions.
10 changes: 7 additions & 3 deletions mos1/events/mos1events.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
os.environ['SAS_ODF'] = os.path.abspath(glob.glob('../../rpcdata/*SUM.SAS')[0])
os.environ['SAS_CCF'] = os.path.abspath(glob.glob('../../rpcdata/ccf.cif')[0])

shutil.copyfile('../mos1_clean.ds', 'mos1_clean_barycen.ds')
subprocess.call(['barycen', 'table=mos1_clean_barycen.ds:EVENTS'])
table = 'mos1_clean_barycen.ds'
# To use the clean event file
# shutil.copyfile('../mos1_clean.ds', 'mos1_clean_barycen.ds')
# subprocess.call(['barycen', 'table=mos1_clean_barycen.ds:EVENTS'])
# table = 'mos1_clean_barycen.ds'

# Use original baricentric corrected event file
table = '../../rpcdata/mos1events_barycen.ds'

pattern = 12

Expand Down
10 changes: 7 additions & 3 deletions mos1/lightcurves/mos1lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
os.environ['SAS_ODF'] = os.path.abspath(glob.glob('../../rpcdata/*SUM.SAS')[0])
os.environ['SAS_CCF'] = os.path.abspath(glob.glob('../../rpcdata/ccf.cif')[0])

shutil.copyfile('../mos1_clean.ds', 'mos1_clean_barycen.ds')
subprocess.call(['barycen', 'table=mos1_clean_barycen.ds:EVENTS'])
table = 'mos1_clean_barycen.ds'
# To use the clean event file
# shutil.copyfile('../mos1_clean.ds', 'mos1_clean_barycen.ds')
# subprocess.call(['barycen', 'table=mos1_clean_barycen.ds:EVENTS'])
# table = 'mos1_clean_barycen.ds'

# Use original baricentric corrected event file
table = '../../rpcdata/mos1events_barycen.ds'

srcregionfile = 'src.reg'
bkgregionfile = 'bkg.reg'
Expand Down
2 changes: 1 addition & 1 deletion mos1/spectra/mos1spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
prefix = ""
sufix = ""

table = 'mos1_clean.ds'
table = '../mos1_clean.ds'
srcspc = '{0}mos1_srcspc{1}.ds'.format(prefix, sufix)
srcimg = '{0}mos1_srcimg{1}.ds'.format(prefix, sufix)
bkgspc = '{0}mos1_bkgspc{1}.ds'.format(prefix, sufix)
Expand Down
10 changes: 7 additions & 3 deletions mos2/events/mos2events.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
os.environ['SAS_ODF'] = os.path.abspath(glob.glob('../../rpcdata/*SUM.SAS')[0])
os.environ['SAS_CCF'] = os.path.abspath(glob.glob('../../rpcdata/ccf.cif')[0])

shutil.copyfile('../mos2_clean.ds', 'mos2_clean_barycen.ds')
subprocess.call(['barycen', 'table=mos2_clean_barycen.ds:EVENTS'])
table = 'mos2_clean_barycen.ds'
# To use the clean event file
# shutil.copyfile('../mos2_clean.ds', 'mos2_clean_barycen.ds')
# subprocess.call(['barycen', 'table=mos2_clean_barycen.ds:EVENTS'])
# table = 'mos2_clean_barycen.ds'

# Use original baricentric corrected event file
table = '../../rpcdata/mos2events_barycen.ds'

pattern = 12

Expand Down
10 changes: 7 additions & 3 deletions mos2/lightcurves/mos2lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
os.environ['SAS_ODF'] = os.path.abspath(glob.glob('../../rpcdata/*SUM.SAS')[0])
os.environ['SAS_CCF'] = os.path.abspath(glob.glob('../../rpcdata/ccf.cif')[0])

shutil.copyfile('../mos2_clean.ds', 'mos2_clean_barycen.ds')
subprocess.call(['barycen', 'table=mos2_clean_barycen.ds:EVENTS'])
table = 'mos2_clean_barycen.ds'
# To use the clean event file
# shutil.copyfile('../mos2_clean.ds', 'mos2_clean_barycen.ds')
# subprocess.call(['barycen', 'table=mos2_clean_barycen.ds:EVENTS'])
# table = 'mos2_clean_barycen.ds'

# Use original baricentric corrected event file
table = '../../rpcdata/mos2events_barycen.ds'

srcregionfile = 'src.reg'
bkgregionfile = 'bkg.reg'
Expand Down
2 changes: 1 addition & 1 deletion mos2/spectra/mos2spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
prefix = ""
sufix = ""

table = 'mos2_clean.ds'
table = '../mos2_clean.ds'
srcspc = '{0}mos2_srcspc{1}.ds'.format(prefix, sufix)
srcimg = '{0}mos2_srcimg{1}.ds'.format(prefix, sufix)
bkgspc = '{0}mos2_bkgspc{1}.ds'.format(prefix, sufix)
Expand Down
2 changes: 1 addition & 1 deletion pn/spectra/pnspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
prefix = ""
sufix = ""

table = 'pn_clean.ds'
table = '../pn_clean.ds'
srcspc = '{0}pn_srcspc{1}.ds'.format(prefix, sufix)
srcimg = '{0}pn_srcimg{1}.ds'.format(prefix, sufix)
bkgspc = '{0}pn_bkgspc{1}.ds'.format(prefix, sufix)
Expand Down

0 comments on commit 01af9ef

Please sign in to comment.