- craftutils.observation.epoch.SkyCoord.spherical_offsets_to(tocoord)
Computes angular offsets to go from this coordinate to another.
Parameters¶
- tocoord~astropy.coordinates.BaseCoordinateFrame
The coordinate to find the offset to.
Returns¶
- lon_offset~astropy.coordinates.Angle
The angular offset in the longitude direction. The definition of “longitude” depends on this coordinate’s frame (e.g., RA for equatorial coordinates).
- lat_offset~astropy.coordinates.Angle
The angular offset in the latitude direction. The definition of “latitude” depends on this coordinate’s frame (e.g., Dec for equatorial coordinates).
Raises¶
- ValueError
If the
tocoordis not in the same frame as this one. This is different from the behavior of the separation/separation_3d methods because the offset components depend critically on the specific choice of frame.
Notes¶
This uses the sky offset frame machinery, and hence will produce a new sky offset frame if one does not already exist for this object’s frame class.
See Also¶
- separation :
for the total angular offset (not broken out into components).
- position_angle :
for the direction of the offset.