SphericalPhysicalDifferential#

class astropy.coordinates.SphericalPhysicalDifferential(d_lon_phys, d_lat_phys=None, d_distance=None, copy=True)[source]#

Bases: BasePhysicalDifferential

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

Components are along the local unit vectors, so that, e.g., for a velocity, d_lon_phys = distance * cos(lat) * d_lon/d_t and d_lat_phys = distance * d_lat/d_t, all in the same units (e.g., km/s).

Parameters:
d_lon_phys, d_lat_phys, d_distanceQuantity

The differentials along the longitude, latitude and distance 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_distance

Component 'd_distance' of the Differential.

d_lat_phys

Component 'd_lat_phys' of the Differential.

d_lon_phys

Component 'd_lon_phys' of the Differential.

name

Name of the representation or differential.

Attributes Documentation

attr_classes = {'d_distance': <class 'astropy.units.quantity.Quantity'>, 'd_lat_phys': <class 'astropy.units.quantity.Quantity'>, 'd_lon_phys': <class 'astropy.units.quantity.Quantity'>}#
d_distance#

Component ‘d_distance’ of the Differential.

d_lat_phys#

Component ‘d_lat_phys’ of the Differential.

d_lon_phys#

Component ‘d_lon_phys’ of the Differential.

name = 'sphericalphysical'#

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.