PhysicsSphericalPhysicalDifferential#

class astropy.coordinates.PhysicsSphericalPhysicalDifferential(d_phi_phys, d_theta_phys=None, d_r=None, copy=True)[source]#

Bases: BasePhysicalDifferential

Differential(s) of 3D physics-convention spherical coords., in physical units.

Components are along the local unit vectors, so that, e.g., for a velocity, d_phi_phys = r * sin(theta) * d_phi/d_t and d_theta_phys = r * d_theta/d_t, all in the same units (e.g., km/s).

Parameters:
d_phi_phys, d_theta_phys, d_rQuantity

The differentials along the azimuth, inclination and radial unit vectors, all with equivalent units.

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_phi_phys

Component 'd_phi_phys' of the Differential.

d_r

Component 'd_r' of the Differential.

d_theta_phys

Component 'd_theta_phys' of the Differential.

name

Name of the representation or differential.

Attributes Documentation

attr_classes = {'d_phi_phys': <class 'astropy.units.quantity.Quantity'>, 'd_r': <class 'astropy.units.quantity.Quantity'>, 'd_theta_phys': <class 'astropy.units.quantity.Quantity'>}#
d_phi_phys#

Component ‘d_phi_phys’ of the Differential.

d_r#

Component ‘d_r’ of the Differential.

d_theta_phys#

Component ‘d_theta_phys’ of the Differential.

name = 'physicssphericalphysical'#

Name of the representation or differential.

When a subclass is defined, by default, the name is the lower-cased name of the class with any trailing ‘representation’ or ‘differential’ removed. (E.g., ‘spherical’ for SphericalRepresentation or SphericalDifferential.)

This can be customized when defining a subclass by setting the class attribute.