Skip to content

Commit dc174cf

Browse files
authored
Merge pull request #22 from bwgref/nuskybgd_spec_bugfix
Fixed a bug where the addabs2rmf.pro was getting passed the wrong path.
2 parents e3859cd + a4c0e99 commit dc174cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pro/nuskybgd_spec.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,12 @@ rmfname=sxpar(h,'RESPFILE')
138138
if keyword_set(forcermf) then rmfname=forcermf
139139

140140
if file_test(cldir+specdir+'temp.rmf') then spawn,'rm -f '+cldir+specdir+'temp.rmf'
141+
;addabs2rmf,cldir+specdir+'/'+rmfname,ab,refdir+'bgdap0'+ab+'.fits',cldir+srcreg,$
142+
; cldir+bgddir,cldir+specdir+'/temp.rmf',method=2
143+
141144
addabs2rmf,cldir+specdir+'/'+rmfname,ab,refdir+'bgdap0'+ab+'.fits',cldir+srcreg,$
142-
cldir+bgddir,cldir+specdir+'/temp.rmf',method=2
145+
refdir,cldir+specdir+'/temp.rmf',method=2
146+
143147
rmfname='temp.rmf'
144148

145149
if not keyword_set(fakname) then fakname=specname

0 commit comments

Comments
 (0)