CartesianPoints

class astropy.coordinates.distances.CartesianPoints(x, y, z, unit=None) [edit on github][source]

Bases: object

A cartesian representation of a point in three-dimensional space.

Attributes

x number or array The first cartesian coordinate.
y number or array The second cartesian coordinate.
z number or array The third cartesian coordinate.
unit UnitBase object or None The physical unit of the coordinate values.

Methods Summary

to_spherical() Converts to the spherical representation of this point.

Methods Documentation

to_spherical() [edit on github][source]

Converts to the spherical representation of this point.

Returns :

r : float or array

The radial coordinate (in the same units as the inputs).

lat : float or array

The latitude in radians

lon : float or array

The longitude in radians

Page Contents