LSST Applications g1653933729+a8ce1bb630,g171997e3ee+76e92115be,g1a997c3884+a8ce1bb630,g28da252d5a+4013ff5194,g2bbee38e9b+d6d0f9f6ae,g2bc492864f+d6d0f9f6ae,g2cdde0e794+ccb74358b7,g3156d2b45e+07302053f8,g347aa1857d+d6d0f9f6ae,g35bb328faa+a8ce1bb630,g3a166c0a6a+d6d0f9f6ae,g3e281a1b8c+130fae20e3,g4005a62e65+17cd334064,g414038480c+c9f68e2a12,g41af890bb2+3e1f62f438,g4e1a3235cc+9db7d56ad0,g7b55021d1b+7b623691d5,g80478fca09+334cc8d2bd,g82479be7b0+b568f6b267,g858d7b2824+37b39d8760,g9125e01d80+a8ce1bb630,ga5288a1d22+11cb34fefe,gae0086650b+a8ce1bb630,gb4ec7eb0ab+37b39d8760,gb58c049af0+d64f4d3760,gc081298178+284e133171,gc28159a63d+d6d0f9f6ae,gcf0d15dbbd+00fe2e0b07,gd6b7c0dfd1+8b62435e69,gda3e153d99+37b39d8760,gda6a2b7d83+00fe2e0b07,gdaeeff99f8+1711a396fd,gdd5a9049c5+23f3b3239a,ge2409df99d+5d9f551a54,ge33fd446bb+37b39d8760,ge79ae78c31+d6d0f9f6ae,gf0baf85859+2dea8344a2,gf5289d68f6+3777f3df5e,w.2024.41
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions | Variables
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.