PhysicsSphericalDifferential¶
- class astropy.coordinates.PhysicsSphericalDifferential(d_phi, d_theta=None, d_r=None, copy=True)[source]¶
Bases:
astropy.coordinates.representation.BaseDifferential
Differential(s) of 3D spherical coordinates using physics convention.
- Parameters
Attributes Summary
Component 'd_phi' of the Differential.
Component 'd_r' of the Differential.
Component 'd_theta' of the Differential.
Methods Summary
from_representation
(representation[, base])represent_as
(other_class[, base])Convert coordinates to another representation.
Attributes Documentation
- attr_classes = {'d_phi': <class 'astropy.units.quantity.Quantity'>, 'd_r': <class 'astropy.units.quantity.Quantity'>, 'd_theta': <class 'astropy.units.quantity.Quantity'>}¶
- d_phi¶
Component ‘d_phi’ of the Differential.
- d_r¶
Component ‘d_r’ of the Differential.
- d_theta¶
Component ‘d_theta’ of the Differential.
Methods Documentation
- 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_class
BaseRepresentation
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
.
- other_class