Geomagnetic#
- class sunpy.coordinates.frames.Geomagnetic(*args, **kwargs)[source]#
Bases:
BaseMagneticA coordinate or frame in the Geomagnetic (MAG) system.
The origin is the center of the Earth.
The Z-axis (+90 degrees latitude) is aligned with the Earth’s magnetic north pole.
The X-axis (0 degrees longitude and 0 degrees latitude) is aligned with the component of the Earth’s geographic north pole that is perpendicular to the Z-axis.
- Parameters:
data (
BaseRepresentationorNone) – A representation object orNoneto have no data (or use the coordinate component arguments, see below).lon (
AngleorQuantity, optional) – The longitude coordinate for this object (latmust also be given anddatamust beNone). Not needed ifdatais given.lat (
AngleorQuantity, optional) – The latitude coordinate for this object (lonmust also be given anddatamust beNone). Not needed ifdatais given.distance (
Quantity, optional) – The distance coordinate from Earth center for this object. Not needed ifdatais given.magnetic_model (
str) – The IGRF model to use for determining the orientation of Earth’s magnetic dipole pole. The supported options are'igrf13'(default),'igrf12','igrf11', and'igrf10'.obstime (
tuple,list,str,pandas.Timestamp,pandas.Index,pandas.Series,pandas.DatetimeIndex,datetime.datetime,datetime.date,numpy.datetime64,numpy.ndarray,astropy.time.Time) – The time of the observation. This is used to determine the position of solar-system bodies (e.g., the Sun and the Earth) as needed to define the origin and orientation of the frame.representation_type (
BaseRepresentation, str, optional) – A representation class or string name of a representation class. This may change the valid coordinate component arguments from the defaults (see above). For example, passingrepresentation_type='cartesian'will make the frame expect Cartesian coordinate component arguments (typically,x,y, andz).copy (bool, optional) – If
True(default), make copies of the input coordinate arrays.
Notes
The position of Earth’s magnetic north pole is calculated from the first three coefficients of the selected IGRF model per Franz & Harper (2002). The small offset between dipole center and Earth center is ignored.
References
Attributes Summary
Default representation for differential data (e.g., velocity)
Default representation for position data
Mapping for frame-specific component names
Attributes Documentation
- default_differential#
Default representation for differential data (e.g., velocity)
- default_representation#
Default representation for position data
- frame_attributes = {'magnetic_model': <astropy.coordinates.attributes.Attribute object>, 'obstime': <sunpy.coordinates.frameattributes.TimeFrameAttributeSunPy object>}#
- frame_specific_representation_info#
Mapping for frame-specific component names
- name = 'geomagnetic'#