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

DM-42224: Add diaSource streak flag metric #201

Merged
merged 6 commits into from Feb 16, 2024
Merged

DM-42224: Add diaSource streak flag metric #201

merged 6 commits into from Feb 16, 2024

Conversation

mrawls
Copy link
Contributor

@mrawls mrawls commented Jan 30, 2024

This PR adds a simple counter metric for the diaSourceTable_tract data product (produced in DRP Step 5) and an optional DiaSkyPlot to go along with it. It is intended as a basic starting point for adding more streak-flavored metrics to both AP and DRP data products and eventually multi-panel plots (in addition to panels that show multiple selections of points).

@mrawls mrawls requested a review from sr525 January 30, 2024 00:42
@mrawls mrawls force-pushed the tickets/DM-42224 branch 5 times, most recently from 2b03b03 to cd59606 Compare February 2, 2024 23:00
@mrawls
Copy link
Contributor Author

mrawls commented Feb 2, 2024

@sr525 I think this should be all set now, please take another look when you can!

ax.scatter(data[ra], data[dec], s=panel.size, alpha=panel.alpha, marker=".", linewidths=0)
# TODO DM-42768: implement lists of colors, sizes, alphas, etc.
# and add better support for multi-panel plots.
# Right now, color is excluded, each series gets the next default.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Another suggestion, but probably for a future ticket. There should probably be some sort of 2d binning for dense data

This counts the number of total 'good' diaSources and the number
that fall in a streak or streakCenter region. It also adds support
for both DRP and AP column naming schemes so future metrics can
more easily read different catalog data products.
turn on atools in the pipeline config, not the task
@mrawls mrawls force-pushed the tickets/DM-42224 branch 2 times, most recently from 0e24891 to 6f2fdd8 Compare February 16, 2024 05:58
@mrawls mrawls merged commit 725c62e into main Feb 16, 2024
8 checks passed
@mrawls mrawls deleted the tickets/DM-42224 branch February 16, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants