RadialDifferential¶
-
class
astropy.coordinates.RadialDifferential(*args, **kwargs)[source]¶ Bases:
astropy.coordinates.BaseDifferentialDifferential(s) of radial distances.
- Parameters
d_distance :
QuantityThe differential distance.
copy : bool, optional
If
True(default), arrays will be copied rather than referenced.
Attributes Summary
Component ‘d_distance’ of the Differential.
Methods Summary
from_cartesian(other, base)Convert the differential from 3D rectangular cartesian coordinates to the desired class.
from_representation(representation[, base])Create a new instance of this representation from another one.
to_cartesian(base)Convert the differential to 3D rectangular cartesian coordinates.
Attributes Documentation
-
attr_classes= {'d_distance': <class 'astropy.units.quantity.Quantity'>}¶
-
d_distance¶ Component ‘d_distance’ of the Differential.
Methods Documentation
-
classmethod
from_cartesian(other, base)[source]¶ Convert the differential from 3D rectangular cartesian coordinates to the desired class.
- Parameters
other :
The object to convert into this differential.
base : instance of
self.base_representationThe points for which the differentials are to be converted: each of the components is multiplied by its unit vectors and scale factors.
- Returns
A new differential object that is this class’ type.
-
classmethod
from_representation(representation, base=None)[source]¶ Create a new instance of this representation from another one.
- Parameters
representation :
BaseRepresentationinstanceThe presentation that should be converted to this class.
base : instance of
cls.base_representationThe base relative to which the differentials will be defined. If the representation is a differential itself, the base will be converted to its
base_representationto help convert it.
-
to_cartesian(base)[source]¶ Convert the differential to 3D rectangular cartesian coordinates.
- Parameters
base : instance of
self.base_representationThe points for which the differentials are to be converted: each of the components is multiplied by its unit vectors and scale factors.
- Returns
This object as a
CartesianDifferential