LSST Applications g0fba68d861+849f694866,g1fd858c14a+7a7b9dd5ed,g2c84ff76c0+5cb23283cf,g30358e5240+f0e04ebe90,g35bb328faa+fcb1d3bbc8,g436fd98eb5+bdc6fcdd04,g4af146b050+742274f7cd,g4d2262a081+9d5bd0394b,g4e0f332c67+cb09b8a5b6,g53246c7159+fcb1d3bbc8,g5a012ec0e7+477f9c599b,g60b5630c4e+bdc6fcdd04,g67b6fd64d1+2218407a0c,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+777438113c,g8852436030+ebf28f0d95,g89139ef638+2218407a0c,g9125e01d80+fcb1d3bbc8,g989de1cb63+2218407a0c,g9f33ca652e+42fb53f4c8,g9f7030ddb1+11b9b6f027,ga2b97cdc51+bdc6fcdd04,gab72ac2889+bdc6fcdd04,gabe3b4be73+1e0a283bba,gabf8522325+3210f02652,gb1101e3267+9c79701da9,gb58c049af0+f03b321e39,gb89ab40317+2218407a0c,gcf25f946ba+ebf28f0d95,gd6cbbdb0b4+e8f9c9c900,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+47bbabaf80,gded526ad44+8c3210761e,ge278dab8ac+3ef3db156b,ge410e46f29+2218407a0c,gf67bdafdda+2218407a0c,v29.0.0.rc3
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.