|
lsst.skymap g91c88c04ca+d4bf8732b5
|
Classes | |
| class | Index2D |
Functions | |
| coordFromVec (vec, defRA=None) | |
| makeSkyPolygonFromBBox (bbox, wcs) | |
Variables | |
| _TinyFloat = numpy.finfo(float).tiny | |
| 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
Raised if vec too near a pole and defRA is None.
| 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