Skip to content

Commit ee7ade2

Browse files
authored
added flux_init columns to initial conditions for psf_phot() (#65)
1 parent f3984b6 commit ee7ade2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phrosty/pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def phot_at_coords( self, img, psf, pxcoords=(50, 50), ap_r=4 ):
235235

236236
forcecoords = Table([[float(pxcoords[0])], [float(pxcoords[1])]], names=["x", "y"])
237237
init = ap_phot(img, forcecoords, ap_r=ap_r)
238+
init['flux_init'] = init['aperture_sum']
238239
final = psf_phot(img, psf, init, forced_phot=True)
239240

240241
flux = final['flux_fit'][0]
@@ -295,6 +296,7 @@ def get_zpt(self, zptimg, psf, band, stars, ap_r=4, ap_phot_only=False,
295296

296297
# First, need to do photometry on the stars.
297298
init_params = ap_phot(zptimg, stars, ap_r=ap_r)
299+
init_params['flux_init'] = init_params['aperture_sum']
298300
final_params = psf_phot(zptimg, psf, init_params, forced_phot=True)
299301

300302
# Do not need to cross match. Can just merge tables because they

0 commit comments

Comments
 (0)