cross_bones.matching

Classes

Match

Components around matching Catalogue 1 to Catalogue 2

OffsetGridSpace

Functions

calculate_matches(→ Match)

Match a pair of catalogues to identify the sources in common.

find_minimum_offset_space(→ tuple[float, float, float])

Search the input offset grid space to find the minimum position

Module Contents

class cross_bones.matching.Match

Components around matching Catalogue 1 to Catalogue 2

err_dec: numpy.typing.NDArray[float]

Different in Dec coordinates between matches

err_ra: numpy.typing.NDArray[float]

Difference in RA coordinates between matches

match_1: astropy.coordinates.SkyCoord

The sky-coordinate of a match in catalogue 1

match_2: astropy.coordinates.SkyCoord

The sky-coordinate of a match in catalogue 2

matches: tuple[numpy.typing.NDArray[Any], numpy.typing.NDArray[Any], Any, Any]

The indices of the matches as returned by search_around_sky

n: int

Number of matches

offset_mean: tuple[float, float]

Mean of the offset in arcseconds in the RA and Declination directions

offset_std: tuple[float, float]

Std of the offset in arcseconds in the RA and Declination directions

sky_pos_1: astropy.coordinates.SkyCoord

Sky positions from catalogue 1

sky_pos_2: astropy.coordinates.SkyCoord

Sky positions from catalogue 2

class cross_bones.matching.OffsetGridSpace
beam: int
dec_offsets: numpy.typing.NDArray[float]
n_sources: int
ra_offsets: numpy.typing.NDArray[float]
seps: numpy.typing.NDArray[float]
cross_bones.matching.calculate_matches(catalogue_1: cross_bones.catalogue.Catalogue | astropy.coordinates.SkyCoord, catalogue_2: cross_bones.catalogue.Catalogue | astropy.coordinates.SkyCoord, sep_limit_arcsecond: float = 9) Match

Match a pair of catalogues to identify the sources in common.

Parameters:
  • catalogue_1 (Catalogue or SkyCoord) – The first loaded catalogue or SkyCoord object.

  • catalogue_2 (Catalogue or SkyCoord) – The second loaded catalogue or SkyCoord object.

  • sep_limit_arcsecond (float, optional) – The separation limit for a match, in arcseconds. Defaults to None.

Returns:

The result of the matching

Return type:

Match

cross_bones.matching.find_minimum_offset_space(offset_space: OffsetGridSpace) tuple[float, float, float]

Search the input offset grid space to find the minimum position

Parameters:

offset_space (OffsetGridSpace) – Results from the brute force grid search

Returns:

The minimum minimum delta RA and delta Dec and the corresponding separation

Return type:

tuple[float, float, float]