SphericalCosLatDifferential

class astropy.coordinates.SphericalCosLatDifferential(d_lon_coslat, d_lat=None, d_distance=None, copy=True)[source]

Bases: BaseSphericalCosLatDifferential

Differential(s) of points in 3D spherical coordinates.

Parameters:
d_lon_coslat, d_latQuantity

The differential longitude (with cos(lat) included) and latitude.

d_distanceQuantity

The differential distance.

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

d_distance

Component 'd_distance' of the Differential.

d_lat

Component 'd_lat' of the Differential.

d_lon_coslat

Component 'd_lon_coslat' of the Differential.

Methods Summary

from_representation(representation[, base])

Create a new instance of this representation from another one.

represent_as(other_class[, base])

Convert coordinates to another representation.

Attributes Documentation

attr_classes = {'d_distance': <class 'astropy.units.quantity.Quantity'>, 'd_lat': <class 'astropy.units.quantity.Quantity'>, 'd_lon_coslat': <class 'astropy.units.quantity.Quantity'>}
d_distance

Component ‘d_distance’ of the Differential.

d_lat

Component ‘d_lat’ of the Differential.

d_lon_coslat

Component ‘d_lon_coslat’ of the Differential.

Methods Documentation

classmethod from_representation(representation, base=None)[source]

Create a new instance of this representation from another one.

Parameters:
representationBaseRepresentation instance

The presentation that should be converted to this class.

baseinstance of cls.base_representation

The base relative to which the differentials will be defined. If the representation is a differential itself, the base will be converted to its base_representation to help convert it.

represent_as(other_class, base=None)[source]

Convert coordinates to another representation.

If the instance is of the requested class, it is returned unmodified. By default, conversion is done via cartesian coordinates.

Parameters:
other_classBaseRepresentation subclass

The type of representation to turn the coordinates into.

baseinstance of self.base_representation

Base relative to which the differentials are defined. If the other class is a differential representation, the base will be converted to its base_representation.