CylindricalRepresentation#
- class astropy.coordinates.CylindricalRepresentation(rho, phi=None, z=None, differentials=None, copy=True)[源代码]#
-
三维柱坐标中点的表示。
- 参数:
- rho :
Quantity
数量 从z轴到点的距离。
- phi :
Quantity
orstr
数量或 Python :应力 点的方位角,以角度单位表示,将以0到360度的角度进行包裹。这也可以是
Angle
,- z :
Quantity
数量 点的z坐标
- differentials :
dict
,CylindricalDifferential
,可选Python:Dict,CylindricalDifferential,可选 应与此表示法关联的任何差异类。输入必须是单个
CylindricalDifferential
实例,或差分实例的字典,其关键字设置为求差分(导数)的SI单位的字符串表示。例如,对于位置表达上的速度差,关键字为's'
秒,指示该派生为时间派生。- copy : bool ,可选可选的布尔
- rho :
属性摘要
点的方位角。
点到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#
点的高度。
方法文件
- scale_factors()[源代码]#
每个组件方向的比例因子。
给定单位向量 \(\hat{{e}}_c\) 和比例因子 \(f_c\) ,一个组成部分的变化 \(\delta c\) 对应于 \(\delta c \times f_c \times \hat{{e}}_c\) .
- unit_vectors()[源代码]#
每个分量方向上的笛卡尔单位向量。
给定单位向量 \(\hat{{e}}_c\) 和比例因子 \(f_c\) ,一个组成部分的变化 \(\delta c\) 对应于 \(\delta c \times f_c \times \hat{{e}}_c\) .
- 返回:
- unit_vectors :
dict
的CartesianRepresentation
Python :笛卡尔表现法 键是组件名称。
- unit_vectors :