sdss / sdss/target_selection

Prevent target_id to be matched with multiple catalogids

Open
#4 0 comments 0 reactions 1 assignee View on GitHub

@albireox is already working on this.

Since May 28, 2020.

Dominant language
Python
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Currently, in phase 2, there is nothing preventing a target to be matched with multiple catalogids as long as they are all within valid distance in the radial query.

To prevent this we could add an initial window function to the cross-match query, partitioning by target_id and selecting only first_value with the closest distance to catalogid. That query would be treated as a subquery to which we then apply the usual partition to define best.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.