xmatch

utilipy.data_utils.xmatch(*catalogs, match_fields: Sequence) → Tuple[List[Any], Dict[str, Sequence]][source]

Cross-match two catalogs.

Todo

  • find duplicates before matching ?

  • allow more catalogs to be xmatched

Parameters
cat1, cat2: Any

the two catalogs to crossmatch must be convertible to recarray

match_fieldsstr, optional

data tag on which to additionally cross-match, default None. this also works for any discrete-valued data column.

References

https://github.com/jobovy/gaia_tools/