astropy / astropy/photutils

Allow the fitting region to be circular in PSF Photometry

Open
#523 1 comment 0 reactions 0 assignees View on GitHub
psf
Dominant language
Python
Stars
307
Forks
156
Avg merge
56m
Merged PRs (30d)
58

Description

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.

Contributor guide

Open the contributing guide

Research direction

Locate the PSF Photometry entry point and trace how the fitshape parameter currently defines the rectangular fitting region. Determine how a regions CirclePixelRegion should define the fitting area, then add coverage for circular fits while preserving rectangular behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.