craftutils.observation.epoch.SkyCoord.directional_offset_by(position_angle, separation)

Computes coordinates at the given offset from this coordinate.

Parameters

position_angle~astropy.coordinates.Angle

position_angle of offset

separation~astropy.coordinates.Angle

offset angular separation

Returns

newpoints~astropy.coordinates.SkyCoord

The coordinates for the location that corresponds to offsetting by the given position_angle and separation.

Notes

Returned SkyCoord frame retains only the frame attributes that are for the resulting frame type. (e.g. if the input frame is ~astropy.coordinates.ICRS, an equinox value will be retained, but an obstime will not.)

For a more complete set of transform offsets, use ~astropy.wcs.WCS. ~astropy.coordinates.SkyCoord.skyoffset_frame() can also be used to create a spherical frame with (lat=0, lon=0) at a reference point, approximating an xy cartesian system for small offsets. This method is distinct in that it is accurate on the sphere.

See Also

position_angle : inverse operation for the position_angle component separation : inverse operation for the separation component