LSST Applications g042eb84c57+730a74494b,g04e9c324dd+8c5ae1fdc5,g134cb467dc+1f1e3e7524,g199a45376c+0ba108daf9,g1fd858c14a+fa7d31856b,g210f2d0738+f66ac109ec,g262e1987ae+83a3acc0e5,g29ae962dfc+d856a2cb1f,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+a1e0c9f713,g47891489e3+0d594cb711,g4d44eb3520+c57ec8f3ed,g4d7b6aa1c5+f66ac109ec,g53246c7159+8c5ae1fdc5,g56a1a4eaf3+fd7ad03fde,g64539dfbff+f66ac109ec,g67b6fd64d1+0d594cb711,g67fd3c3899+f66ac109ec,g6985122a63+0d594cb711,g74acd417e5+3098891321,g786e29fd12+668abc6043,g81db2e9a8d+98e2ab9f28,g87389fa792+8856018cbb,g89139ef638+0d594cb711,g8d7436a09f+80fda9ce03,g8ea07a8fe4+760ca7c3fc,g90f42f885a+033b1d468d,g97be763408+a8a29bda4b,g99822b682c+e3ec3c61f9,g9d5c6a246b+0d5dac0c3d,ga41d0fce20+9243b26dd2,gbf99507273+8c5ae1fdc5,gd7ef33dd92+0d594cb711,gdab6d2f7ff+3098891321,ge410e46f29+0d594cb711,geaed405ab2+c4bbc419c6,gf9a733ac38+8c5ae1fdc5,w.2025.38
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 42 of file matcher_probabilistic.py.

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

◆ _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 48 of file matcher_probabilistic.py.

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

◆ default_value()

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

Definition at line 425 of file matcher_probabilistic.py.

425def default_value(dtype):
426 if dtype is str:
427 return ''
428 elif np.issubdtype(dtype, np.signedinteger):
429 return np.inf
430 elif np.issubdtype(dtype, np.unsignedinteger):
431 return -np.inf
432 return None
433
434

Variable Documentation

◆ logger_default

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

Definition at line 39 of file matcher_probabilistic.py.