LSST Applications g04a91732dc+146a938ab0,g07dc498a13+80b84b0d75,g0fba68d861+0decac7526,g1409bbee79+80b84b0d75,g1a7e361dbc+80b84b0d75,g1fd858c14a+f6e422e056,g20f46db602+483a84333a,g21d47ad084+4a6cd485de,g35bb328faa+fcb1d3bbc8,g42c1b31a95+a1301e4c20,g4d39ba7253+9b833be27e,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+9b833be27e,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+790117df0f,g89139ef638+80b84b0d75,g8d6b6b353c+9b833be27e,g9125e01d80+fcb1d3bbc8,g989de1cb63+80b84b0d75,g9f33ca652e+9c6b68d7f3,ga9baa6287d+9b833be27e,gaaedd4e678+80b84b0d75,gabe3b4be73+1e0a283bba,gb1101e3267+9f3571abad,gb58c049af0+f03b321e39,gb90eeb9370+691e4ab549,gc741bbaa4f+5f483edd21,gcf25f946ba+790117df0f,gd24842266e+c54cdbdbd2,gd315a588df+5b65d88fe4,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+c99546153d,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,w.2025.10
LSST Data Management Base Package
Loading...
Searching...
No Matches
lsst.meas.astrom.matcher_probabilistic Namespace Reference

Classes

class  CatalogExtras
 
class  ComparableCatalog
 
class  ConvertCatalogCoordinatesConfig
 
class  MatcherProbabilistic
 
class  MatchProbabilisticConfig
 

Functions

 _mul_column (np.array column, float value)
 
 _radec_to_xyz (ra, dec)
 
 default_value (dtype)
 

Variables

 logger_default = logging.getLogger(__name__)
 

Function Documentation

◆ _mul_column()

lsst.meas.astrom.matcher_probabilistic._mul_column ( np.array column,
float value )
protected

Definition at line 43 of file matcher_probabilistic.py.

43def _mul_column(column: np.array, value: float):
44 if value is not None and value != 1:
45 column *= value
46 return column
47
48

◆ _radec_to_xyz()

lsst.meas.astrom.matcher_probabilistic._radec_to_xyz ( ra,
dec )
protected
Convert input ra/dec coordinates to spherical unit vectors.

Parameters
----------
ra, dec: `numpy.ndarray`
    Arrays of right ascension/declination in degrees.

Returns
-------
vectors : `numpy.ndarray`, (N, 3)
    Output unit vectors.

Definition at line 49 of file matcher_probabilistic.py.

49def _radec_to_xyz(ra, dec):
50 """Convert input ra/dec coordinates to spherical unit vectors.
51
52 Parameters
53 ----------
54 ra, dec: `numpy.ndarray`
55 Arrays of right ascension/declination in degrees.
56
57 Returns
58 -------
59 vectors : `numpy.ndarray`, (N, 3)
60 Output unit vectors.
61 """
62 if ra.size != dec.size:
63 raise ValueError('ra and dec must be same size')
64 ras = np.radians(ra)
65 decs = np.radians(dec)
66 vectors = np.empty((ras.size, 3))
67
68 sin_dec = np.sin(np.pi / 2 - decs)
69 vectors[:, 0] = sin_dec * np.cos(ras)
70 vectors[:, 1] = sin_dec * np.sin(ras)
71 vectors[:, 2] = np.cos(np.pi / 2 - decs)
72
73 return vectors
74
75
76@dataclass

◆ default_value()

lsst.meas.astrom.matcher_probabilistic.default_value ( dtype)

Definition at line 440 of file matcher_probabilistic.py.

440def default_value(dtype):
441 if dtype is str:
442 return ''
443 elif np.issubdtype(dtype, np.signedinteger):
444 return np.inf
445 elif np.issubdtype(dtype, np.unsignedinteger):
446 return -np.inf
447 return None
448
449

Variable Documentation

◆ logger_default

lsst.meas.astrom.matcher_probabilistic.logger_default = logging.getLogger(__name__)

Definition at line 40 of file matcher_probabilistic.py.