NorthOffsetFrame#
- class sunpy.coordinates.NorthOffsetFrame(*args, **kwargs)#
Bases:
object
A frame which is offset from another frame such that it shares the same origin, but has its “north pole” (i.e., the Z axis) in a different direction.
The original coordinate frame and the direction of the new north pole are specified by the
north
keyword.This class should be used when specifying a new north pole is natural. In contrast, for shifting the origin in the projected sky (e.g., where helioprojective X and Y coordinates are zero), use
SkyOffsetFrame
instead.- Parameters:
north (
HeliographicStonyhurst
) – The direction and frame for the new “north pole”.
Examples
Segmenting a Map based on transformation of coordinates
Segmenting a Map based on transformation of coordinatesOffsetting the north pole of a coordinate frame
Offsetting the north pole of a coordinate frameNotes
NorthOffsetFrame
is a wrapper around theSkyOffsetFrame
factory class. This class will calculate the desired coordinates of theorigin
from thenorth
keyword argument and then create aSkyOffsetFrame
.Using this frame is equivalent to using
SkyOffsetFrame
withlat = lat - 90*u.deg
for a position of the north pole in the original northern hemisphere.