photutils
photutils copied to clipboard
Separate sky estimation for each stars in IterativelySubtractedPSFPhotometry
Currently the PSF photometry in photutils accepts the sky estimator as bkg_estimator
.
But in PSF photometry process, as far as I understand, we have to subtract the sky from regional circular annulus estimation, rather than SEx background estimator, to get the PSF (e.g., Stetson 1987 PASP).
I tried to do something like
# data: sky not subtracted
stars = extract_stars(NDData(data), star_table, size=fwhm*4+1)
for i, s in enumerate(stars):
s._data -= pick[i]["background"]
but this modifies the original data frame.
Is there a simple way to make the code do the background estimation using the circular annulus near the object?
Hi, is there any new information about this issue? I am currently using BasicPSFPhotometry and I am trying to subtract the sky from a regional circular annulus as described here. To do this I would also like to know how to specify a circular area in which to fit the PSF model. My understanding is that fitshape controls the area where the PSF is fitted but fitshape only allows rectangular areas and not circular ones. Do you know what I am missing in order to fit the PSF model to a circular region?