coordFromVec

lsst.skymap.detail.coordFromVec(vec, defRA=None)

Convert an ICRS cartesian vector to an ICRS lsst.geom.SpherePoint.

Parameters:
veclist of float

An ICRS catesian vector.

defRAlsst.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.