lsst.skymap g6075d09f38+4cab39f69d
|
Classes | |
class | Index2D |
Functions | |
def | coordFromVec (vec, defRA=None) |
def | makeSkyPolygonFromBBox (bbox, wcs) |
Variables | |
numpy | _TinyFloat = numpy.finfo(float).tiny |
def lsst.skymap.detail.utils.coordFromVec | ( | vec, | |
defRA = None |
|||
) |
Convert an ICRS cartesian vector to an ICRS lsst.geom.SpherePoint Parameters ---------- vec : `list` of `float` An ICRS catesian vector. defRA : `lsst.geom.Angle` or None The RA to use if the vector is too near a pole; ignored if not near a pole. Raises ------ RuntimeError If vec too near a pole and defRA is None.
def lsst.skymap.detail.utils.makeSkyPolygonFromBBox | ( | bbox, | |
wcs | |||
) |
Make an on-sky polygon from a bbox and a SkyWcs Parameters ---------- bbox : `lsst.geom.Box2I` or `lsst.geom.Box2D` Bounding box of region, in pixel coordinates wcs : `lsst.afw.geom.SkyWcs` Celestial WCS Returns ------- polygon : `lsst.sphgeom.ConvexPolygon` On-sky region