CylindricalRepresentation#

class astropy.coordinates.CylindricalRepresentation(rho, phi=None, z=None, differentials=None, copy=True)[源代码]#

基类:BaseRepresentation

三维柱坐标中点的表示。

参数:
rhoQuantity数量

从z轴到点的距离。

phi : Quantity or str数量或 Python :应力

点的方位角,以角度单位表示,将以0到360度的角度进行包裹。这也可以是 Angle

zQuantity数量

点的z坐标

differentials : dictCylindricalDifferential ,可选Python:Dict,CylindricalDifferential,可选

应与此表示法关联的任何差异类。输入必须是单个 CylindricalDifferential 实例,或差分实例的字典,其关键字设置为求差分(导数)的SI单位的字符串表示。例如,对于位置表达上的速度差,关键字为 's' 秒,指示该派生为时间派生。

copy : bool ,可选可选的布尔

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

属性摘要

attr_classes 

phi 

点的方位角。

rho 

点到z轴的距离。

z 

点的高度。

方法总结

from_cartesian \(购物车)

将三维直角笛卡尔坐标转换为圆柱极坐标。

scale_factors \()

每个组件方向的比例因子。

to_cartesian \()

将圆柱极坐标转换为三维直角笛卡尔坐标。

unit_vectors \()

每个分量方向上的笛卡尔单位向量。

属性文档

attr_classes = {'phi': <class 'astropy.coordinates.angles.core.Angle'>, 'rho': <class 'astropy.units.quantity.Quantity'>, 'z': <class 'astropy.units.quantity.Quantity'>}#
phi#

点的方位角。

rho#

点到z轴的距离。

z#

点的高度。

方法文件

classmethod from_cartesian(cart)[源代码]#

将三维直角笛卡尔坐标转换为圆柱极坐标。

scale_factors()[源代码]#

每个组件方向的比例因子。

给定单位向量 \(\hat{{e}}_c\) 和比例因子 \(f_c\) ,一个组成部分的变化 \(\delta c\) 对应于 \(\delta c \times f_c \times \hat{{e}}_c\) .

返回:
scale_factors : dictQuantityPython :数量决定论

键是组件名称。

to_cartesian()[源代码]#

将圆柱极坐标转换为三维直角笛卡尔坐标。

unit_vectors()[源代码]#

每个分量方向上的笛卡尔单位向量。

给定单位向量 \(\hat{{e}}_c\) 和比例因子 \(f_c\) ,一个组成部分的变化 \(\delta c\) 对应于 \(\delta c \times f_c \times \hat{{e}}_c\) .

返回:
unit_vectors : dictCartesianRepresentationPython :笛卡尔表现法

键是组件名称。