PhysicsSphericalDifferential#

class astropy.coordinates.PhysicsSphericalDifferential(d_phi, d_theta=None, d_r=None, copy=True)[源代码]#

基类:BaseDifferential

使用物理约定的三维球坐标微分。

参数:
d_phi, d_thetaQuantity数量

差分方位角和倾角。

d_rQuantity数量

微分径向距离。

copy : bool ,可选可选的布尔

如果 True (默认),将复制数组。如果 False ,数组将作为引用,但可能会广播以确保形状匹配。

属性摘要

attr_classes 

d_phi 

差速器的“d_phi”分量。

d_r 

差速器的“d”部件。

d_theta 

差速器的“dθ”分量。

方法总结

from_representation(representation[, base])

从另一个表示创建此表示的新实例。

represent_as(other_class[, base])

将坐标转换为其他表示。

属性文档

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#

差速器的“d_phi”分量。

d_r#

差速器的“d”部件。

d_theta#

差速器的“dθ”分量。

方法文件

classmethod from_representation(representation, base=None)[源代码]#

从另一个表示创建此表示的新实例。

参数:
代表BaseRepresentation 实例BaseRepresentation实例

应转换为此类的演示文稿。

base :的实例 cls.base_representation实例

将定义差分的相对基数。如果表示本身是一个微分,则基数将转换为 base_representation 来帮助转化它。

represent_as(other_class, base=None)[源代码]#

将坐标转换为其他表示。

如果实例属于所请求的类,则未经修改地返回。默认情况下,转换是通过笛卡尔坐标完成的。

参数:
other_classBaseRepresentation 子类基表示子类

要将坐标转换为的表示类型。

base :的实例 self.base_representation实例

定义差分的相对基数。如果另一个类是差分表示,则基类将转换为 base_representation .