astropy:docs

CartesianPoints

class astropy.coordinates.CartesianPoints(*args, **kwargs)[source] [edit on github]

Bases: astropy.coordinates.CartesianPoints

Deprecated since version v0.4: The CartesianPoints class is deprecated and may be removed in a future version. Use astropy.coordinates.CartesianRepresentation instead.

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

Parameters:

x : Quantity or array-like

The first cartesian coordinate or a single array or Quantity where the first dimension is length-3.

y : Quantity or array-like, optional

The second cartesian coordinate.

z : Quantity or array-like, optional

The third cartesian coordinate.

unit : UnitBase object or None

The physical unit of the coordinate values. If x, y, or z are quantities, they will be converted to this unit.

dtype : dtype, optional

See Quantity. Must be given as a keyword argument.

copy : bool, optional

See Quantity. Must be given as a keyword argument.

Raises:

UnitsError

If the units on x, y, and z do not match or an invalid unit is given.

ValueError

If y and z don’t match x‘s shape or x is not length-3

TypeError

If incompatible array types are passed into x, y, or z

Deprecated since version v0.4: The CartesianPoints class is deprecated and may be removed in a future version. Use astropy.coordinates.CartesianRepresentation instead.

Page Contents