astropy / astropy/photutils

Making custom apertures by combining existing Apertures

Open
#888 2 comments 0 reactions 0 assignees View on GitHub
aperture question
Dominant language
Python
Stars
307
Forks
156
Avg merge
56m
Merged PRs (30d)
58

Description

It's rather a question...

I wanted to make a pillbox-shaped aperture, as in TRIPPY (e.g., [here](https://nbviewer.jupyter.org/github/fraserw/trippy/blob/master/tutorial/trippytutorial.ipynb)), because all the stars in my images are trailed (due to the non-sidereal tracking mode).

I thought it will be easy enough because what I have to do is just combining two circles with a rectangle (overlapping regions will not matter much if I use ``mask`` properly) using ``photutils``. But currently I am stuck at the very first step... I can't just sum or combine the apertures as I sometimes do for astropy models. I think there should be simple workaround, but couldn't figure out so far.

Do you have any idea?

Contributor guide

Open the contributing guide

Research direction

Start with the linked TRIPPY tutorial and photutils' existing Aperture classes; inspect how their masks are produced and whether the current API supports combining shapes. Done means documenting or enabling a supported way to construct a pillbox-shaped aperture from two circles and a rectangle, with overlapping regions handled as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.