LSST Applications g0000d66e7c+ce78115f25,g0485b4d2cb+c8d56b10d4,g0fba68d861+fcbc158cd0,g1ec0fe41b4+3e153770da,g1fd858c14a+57ee4e1624,g2440f9efcc+8c5ae1fdc5,g35bb328faa+8c5ae1fdc5,g4d2262a081+1e04cc5a47,g53246c7159+8c5ae1fdc5,g55585698de+7a33f081c8,g56a49b3a55+b9d5cac73f,g60b5630c4e+7a33f081c8,g67b6fd64d1+035c836e50,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g7ac00fbb6c+b938379438,g8352419a5c+8c5ae1fdc5,g8852436030+5ba78a36c9,g89139ef638+035c836e50,g94187f82dc+7a33f081c8,g989de1cb63+035c836e50,g9d31334357+7a33f081c8,g9f33ca652e+e34120223a,ga815be3f0b+911242149a,gabe3b4be73+8856018cbb,gabf8522325+21619da9f3,gb1101e3267+0b44b44611,gb89ab40317+035c836e50,gc91f06edcd+e59fb3c9bc,gcf25f946ba+5ba78a36c9,gd6cbbdb0b4+958adf5c1f,gde0f65d7ad+6c98dcc924,ge278dab8ac+83c63f4893,ge410e46f29+035c836e50,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf67bdafdda+035c836e50,gf6800124b1+1714c04baa,w.2025.19
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.