|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
Functions | |
| toIndex (nside, ra, dec) | |
| toRaDec (nside, index) | |
| eq2xyz (ra, dec) | |
| eq2xyzVec (ra, dec) | |
| convert_spherical (ra, dec) | |
| convert_spherical_array (array) | |
| query_disc (nside, ra, dec, max_rad, min_rad=0) | |
| obj_id_to_ss_object_id (objID) | |
| ss_object_id_to_obj_id (ssObjectID) | |
Utilities for interfacing with hpgeom. Originally implemented in http://github.com/LSSTDESC/dia_pipe and then translated to hpgeom.
| lsst.pipe.tasks.associationUtils.convert_spherical | ( | ra, | |
| dec ) |
Convert from ra,dec to spherical coordinates.
Used in query_disc.
Parameters
----------
ra : `float`
RA in radians.
dec : `float`
Declination in radians
Definition at line 124 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.convert_spherical_array | ( | array | ) |
Convert from and a array ra,dec to spherical coordinates.
Used in query_disc
Parameters
----------
array : `numpy.ndarray`, (N, 2)
(N, 2) Array of RA, DEC values.
Returns
-------
vecs : `numpy.ndarray`, (N, 3)
Vectors on the unit sphere
Definition at line 141 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.eq2xyz | ( | ra, | |
| dec ) |
Convert from equatorial ra,dec in degrees to x,y,z on unit sphere.
Parameters
----------
ra : `float`
RA in degrees.
dec : `float`
Declination in degrees
Returns
-------
xyz : `numpy.ndarray`, (3,)
Float xyz positions on the unit sphere.
Definition at line 72 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.eq2xyzVec | ( | ra, | |
| dec ) |
Convert equatorial ra,dec in degrees to x,y,z on the unit sphere
parameters
Vectorized version of ``eq2xyz``
Parameters
----------
ra : array_like, (N,)
Array of RA in degrees.
dec : array_like, (N,)
Declination in degrees
Returns
-------
vec : `numpy.ndarray`, (N,3)
Array of unitsphere 3-vectors.
Definition at line 96 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.obj_id_to_ss_object_id | ( | objID | ) |
Convert from Minor Planet Center packed provisional object ID to
Rubin ssObjectID.
Parameters
----------
objID : `str`
Minor Planet Center packed provisional designation for a small solar
system object. Must be fewer than eight characters.
Returns
-------
ssObjectID : `int`
Rubin ssObjectID
Raises
------
ValueError
Raised if either objID is shorter than 7 or longer than 8 characters or contains
illegal objID characters
Definition at line 198 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.query_disc | ( | nside, | |
| ra, | |||
| dec, | |||
| max_rad, | |||
| min_rad = 0 ) |
Get the list of healpix indices within max_rad, min_rad given in radians
around ra,dec given in degrees
Parameters
----------
nside : `int`
Resolution of the healpixels to search/return.
ra : `float`
RA in degrees.
dec : `float`
Declination in degrees
max_rad : `float`
Max distance in radians to search nearby healpixels.
min_rad : `float`, optional
Minimum distance in radians to search healpixels. Default = 0.
Definition at line 161 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.ss_object_id_to_obj_id | ( | ssObjectID | ) |
Convert from Rubin ssObjectID to Minor Planet Center packed provisional
object ID.
Parameters
----------
ssObjectID : `int`
Rubin ssObjectID
Returns
-------
objID : `str`
Minor Planet Center packed provisional designation.
Raises
------
Definition at line 233 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.toIndex | ( | nside, | |
| ra, | |||
| dec ) |
Return healpix index given ra, dec in degrees
Parameters
----------
nside : `int`
Power of 2 nside healpix resolution.
ra : `float`
RA in degrees.
dec : `float`
Declination in degrees
Returns
-------
index : `int`
Unique healpix pixel ID containing point RA, DEC at resolution nside.
Definition at line 33 of file associationUtils.py.
| lsst.pipe.tasks.associationUtils.toRaDec | ( | nside, | |
| index ) |
Convert from healpix index to ra,dec in degrees
Parameters
----------
nside : `int`
Resolution of healpixel "grid".
index : `int`
Index of the healpix pixel we want to find the location of.
Returns
-------
pos : `numpy.ndarray`, (2,)
RA and DEC of healpix pixel location in degrees.
Definition at line 53 of file associationUtils.py.