Skip to content

Commit 26dcd83

Browse files
committed
small shifts to the tessprf call
1 parent 0e4a6ac commit 26dcd83

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tessreduce/tessreduce.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,13 @@ def _psf_initialise(self,cutoutSize,loc,time_ind=None,ref=False):
16571657
loc[0] = int(np.round(loc[0],0))
16581658
if isinstance(loc[1], (float, np.floating, np.float32, np.float64)):
16591659
loc[1] = int(np.round(loc[1]))
1660+
1661+
col += 45 # add on the non-science columns
1662+
row += 1 # add on the non-science row
1663+
if col > 2090:
1664+
col = 2090
1665+
if row > 2040:
1666+
row = 2040
16601667

16611668
prf = TESS_PRF(self.tpf.camera,self.tpf.ccd,self.tpf.sector,col,row) # initialise psf kernel
16621669
if ref:
@@ -1754,6 +1761,13 @@ def psf_photutils(self,xPix=None,yPix=None,size=5,local_bkg=False,epsf=None,
17541761
if self.epsf is None:
17551762
col = self.tpf.column - int(self.size//2) + yPix # find column and row, when specifying location on a *say* 90x90 px cutout
17561763
row = self.tpf.row - int(self.size//2) + xPix
1764+
col += 45 # add on the non-science columns
1765+
row += 1 # add on the non-science row
1766+
if col > 2090:
1767+
col = 2090
1768+
if row > 2040:
1769+
row = 2040
1770+
17571771
self.epsf = simulate_epsf(self.tpf.camera,self.tpf.ccd,self.tpf.sector,col,row)
17581772
epsf = self.epsf
17591773

0 commit comments

Comments
 (0)