Skip to content

Commit

Permalink
Use original 2MASS ID instead of pts_key
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreymo committed Apr 20, 2024
1 parent da93217 commit fbf5ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirar/catalog/gaia.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_catalog(
f"gaiadr2.tmass_best_neighbour AS tbest, "
f"extcat.twomass AS tmass "
f"WHERE g.source_id = tbest.source_id "
f"AND tbest.tmass_oid = tmass.pts_key "
f"AND tbest.original_ext_source_id = tmass.mainid "
f"AND CONTAINS(POINT('ICRS', g.ra, g.dec), "
f"CIRCLE('ICRS', {ra_deg:.4f}, {dec_deg:.4f}, "
f"{self.search_radius_arcmin / 60:.4f}))=1 "
Expand Down

0 comments on commit fbf5ce6

Please sign in to comment.