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

Adding a basic source catalog from Source Detection Step #1029

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bmorris3
Copy link
Collaborator

Resolves RCAL-719

Closes #1014

This PR does two things:

  1. The data structure originally used for the tweakreg catalog was a 2D ndarray without labels or metadata. Recent PRs have switched to a structured array (Structured array source detection catalogs #987, Fix issue with source catalog in TweakReg. #1001) partly because I was under the impression that an astropy table wasn't supported. I found out that this was incorrect, so this PR saves the tweakreg catalog as an astropy table.

  2. One of the related catalog requirements is to predict if a source is extended or not. There are lots of useful metrics produced but not preserved during Source Detection that help with this task. Sources are found with DAOStarFinder, which estimates source centroids and fluxes, as well as sharpness and roundness metrics. Users can optionally fit PSF models to the image via PSFPhotometry for more accurate astrometry and photometry, which also computes two quality of fit metrics (qfit, cfit). Those last quality metrics are best described in this ISR or in literature citations that discuss their use like Häberle 2021 or Griggio 2023.

Checklist

  • added entry in CHANGES.rst under the corresponding subsection
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below. How to run regression tests on a PR

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (9b14c88) 70.94% compared to head (f3ca274) 70.90%.

Files Patch % Lines
romancal/source_detection/source_detection_step.py 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1029      +/-   ##
==========================================
- Coverage   70.94%   70.90%   -0.04%     
==========================================
  Files         105      105              
  Lines        6979     6974       -5     
==========================================
- Hits         4951     4945       -6     
- Misses       2028     2029       +1     
Flag Coverage Δ *Carryforward flag
nightly 63.04% <ø> (-0.03%) ⬇️ Carriedforward from 9b14c88

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bmorris3 bmorris3 marked this pull request as ready for review December 4, 2023 15:05
@bmorris3 bmorris3 requested a review from a team as a code owner December 4, 2023 15:05
Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Will it break the regression tests?

@nden
Copy link
Collaborator

nden commented Jan 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic catalogs
3 participants