coordFromVec

lsst.skymap.detail.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.