astropy / photutils

Astropy package for source detection and photometry. Maintainer: @larrybradley
https://photutils.readthedocs.io
BSD 3-Clause "New" or "Revised" License
243 stars 136 forks source link

Allow the fitting region to be circular in PSF Photometry #523

Open mirca opened 7 years ago

mirca commented 7 years ago

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.

larrybradley commented 7 years ago

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