photutils icon indicating copy to clipboard operation
photutils copied to clipboard

Allow the fitting region to be circular in PSF Photometry

Open mirca opened this issue 7 years ago • 1 comments

Currently the fitting region is defined by the fitshape parameter which defines a rectangular region around the (initial guess) center of the source.

It would be great to be able to perform the fit in a circular region.

I see this being implemented by allowing fitshape to be an CirclePixelRegion (from regions) object which defines the fitting region.

mirca avatar Mar 21 '17 17:03 mirca

Yes, that would be nice.

It may be better (more general) to allow fitshape to be a "footprint" array (essentially an array of ones and zeros like a mask). Such an array can be generated from apertures or regions using the to_mask() method.

Here's an example of a footprint: http://photutils.readthedocs.io/en/latest/api/photutils.detection.find_peaks.html?highlight=footprint

larrybradley avatar Mar 21 '17 18:03 larrybradley