Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: More photometry options #495

Open
1 of 6 tasks
taylorbell57 opened this issue Dec 1, 2022 · 0 comments
Open
1 of 6 tasks

[Enhancement]: More photometry options #495

taylorbell57 opened this issue Dec 1, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request MIRI NIRCam

Comments

@taylorbell57
Copy link
Collaborator

taylorbell57 commented Dec 1, 2022

Instrument

NIRCam (Stages 1-3), MIRI (Stages 1-3)

What is your suggestion?

As of right now, the only two options for photometric extraction are what I will call "hard" circular apertures (where a pixel is either in or out of an aperture based on the location of its center) or "subsampled" circular apertures (where a pixel is bilinearly interpolated and then a "hard" aperture is used on those sub-pixels). A potentially faster option to "subsampled" apertures is to use what I call "soft" apertures where a portion of a pixel's flux is included in the sum based on the fractional area of the pixel that lies within the aperture. Another option is non-circular apertures (e.g. box or elliptical). There is also the question of whether the aperture should move with the fitted centroid or stay stationary based on the mean centroid location. And then there is the possiblity of different background subtraction techniques - e.g. use the same 1/f subtraction method used on NIRCam photometry for MIRI photometry. Finally, there's also the possibility to use optimal photometric extraction. In summary, the things I think worth including (or at least investigating) are:

In my experience, the CircularAperture, EllipticalAperture, RectangularAperture, and CircularAnnulus functions from photutils.aperture work well, aperture_photometry from photutils offers the same "hard" aperture we currently use (called "center") as well as a "soft" aperture (called "exact"). It is also easy to implement "subsampled" apertures and moving apertures with this package. Using this external package would also significantly reduce the amount of code we need to maintain. I suggest we use these packages instead and remove the old code.

I have tried optimal extraction using flux or error weighting in a jupyter notebook and found error weighting to be the better of the two methods for MIRI photometry, but aperture photometry tends to work a tiny bit better (likely depends on the particular observation). I've yet to try the 1/f subtraction method for the MIRI photometry as it'll take some significant tweaking.

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request MIRI NIRCam
Projects
Status: To do
Development

No branches or pull requests

4 participants