|
LSST Applications g00d0e8bbd7+8c5ae1fdc5,g013ef56533+603670b062,g083dd6704c+2e189452a7,g199a45376c+0ba108daf9,g1c5cce2383+bc9f6103a4,g1fd858c14a+cd69ed4fc1,g210f2d0738+c4742f2e9e,g262e1987ae+612fa42d85,g29ae962dfc+83d129e820,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+5eaa884f2a,g47891489e3+e32160a944,g53246c7159+8c5ae1fdc5,g5b326b94bb+dcc56af22d,g64539dfbff+c4742f2e9e,g67b6fd64d1+e32160a944,g74acd417e5+c122e1277d,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g88cb488625+47d24e4084,g89139ef638+e32160a944,g8d7436a09f+d14b4ff40a,g8ea07a8fe4+b212507b11,g90f42f885a+e1755607f3,g97be763408+34be90ab8c,g98df359435+ec1fa61bf1,ga2180abaac+8c5ae1fdc5,ga9e74d7ce9+43ac651df0,gbf99507273+8c5ae1fdc5,gc2a301910b+c4742f2e9e,gca7fc764a6+e32160a944,gd7ef33dd92+e32160a944,gdab6d2f7ff+c122e1277d,gdb1e2cdc75+1b18322db8,ge410e46f29+e32160a944,ge41e95a9f2+c4742f2e9e,geaed405ab2+0d91c11c6d,w.2025.44
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, flags=0) | |
| 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, | |
| flags = 0 ) |
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.
flags : `int`, optional
Eight free bits to enable future decoupling between Minor Planet Center
and Rubin. Zero by default, should not be changed unless we need to
move away from a 1:1 mapping with the MPC. Must be within [0, 255].
Returns
-------
ssObjectID : `int`
Rubin ssObjectID
Raises
------
ValueError
Raised if either objID is longer than 7 characters or flags is greater
than 255 or less than 0.
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.
flags : `int`
Rubin flags (not yet defined, but usable in case we decouple from MPC).
Raises
------
Definition at line 239 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.