CartesianRepresentationAttribute#
- class astropy.coordinates.CartesianRepresentationAttribute(default=None, secondary_attribute='', unit=None)[源代码]#
基类:
Attribute
一种帧属性,它是具有指定单位的CartesianRepresentation。
- 参数:
- default :
object
对象 属性的默认值(如果未提供)
- secondary_attribute :
str
Python :字符串 提供值if的辅助实例属性的名称
default is None
初始化期间未提供任何值。- unit : astropy:unit-like 或
None
AstPy:类单位或 Python :无 输入将转换为的单元的名称。如果没有,则不执行单元检查或转换
- default :
方法总结
convert_input
\(值)检查输入是否为具有正确单位或特殊值的CartesianRepresentation
[0, 0, 0]
.方法文件