CDS#
- class astropy.units.format.CDS(*args, **kwargs)[源代码]#
基类:
Base
支持 Centre de Données astronomiques de Strasbourg Standards for Astronomical Catalogues 2.0 格式,并且 complete set of supported units 。VOTABLE直到1.2版都使用此格式。
属性摘要
方法总结
format_exponential_notation
(val[, format_spec])将值格式化为指数表示法。
parse
(s[, debug])将字符串转换为单位对象。
to_string
(unit[, fraction])将单位转换为其字符串表示形式。
属性文档
- name = 'cds'#
方法文件
- classmethod to_string(unit, fraction=False)[源代码]#
将单位转换为其字符串表示形式。
实施
to_string
。- 参数:
- 加薪:
ValueError
如果
fraction
不被识别。