BaseBodycentricRepresentation#

class astropy.coordinates.BaseBodycentricRepresentation(lon, lat=None, height=None, copy=True)[source]#

Bases: BaseRepresentation

Representation of points in bodycentric 3D coordinates.

Subclasses need to set attributes _equatorial_radius and _flattening to quantities holding correct values (with units of length and dimensionless, respectively). the bodycentric latitude and longitude are spherical latitude and longitude relative to the barycenter of the body.

Parameters:
lon, latastropy:angle-like

The longitude and latitude of the point(s), in angular units. The latitude should be between -90 and 90 degrees, and the longitude will be wrapped to an angle between 0 and 360 degrees. These can also be instances of Angle and either Longitude not Latitude, depending on the parameter.

heightQuantity [:ref: ‘length’]

The height to the point(s).

copybool, optional

If True (default), arrays will be copied. If False, arrays will be references, though possibly broadcast to ensure matching shapes.

Attributes Summary

attr_classes

Methods Summary

from_cartesian(cart)

Converts 3D rectangular cartesian coordinates (assumed geocentric) to bodycentric coordinates.

to_cartesian()

Converts bodycentric coordinates to 3D rectangular (geocentric) cartesian coordinates.

Attributes Documentation

attr_classes = {'height': <class 'astropy.units.quantity.Quantity'>, 'lat': <class 'astropy.coordinates.angles.core.Latitude'>, 'lon': <class 'astropy.coordinates.angles.core.Longitude'>}#

Methods Documentation

classmethod from_cartesian(cart)[source]#

Converts 3D rectangular cartesian coordinates (assumed geocentric) to bodycentric coordinates.

to_cartesian()[source]#

Converts bodycentric coordinates to 3D rectangular (geocentric) cartesian coordinates.