earth_orientation_table#

class astropy.utils.iers.earth_orientation_table[源代码]#

基类:ScienceState

地球自转和参考系统服务的默认IERS表。

这些表格用于计算 UT1UTC 以及转换到地球坐标系。

状态本身是一个IERS表,作为 IERS 类。默认情况下,自动更新 IERS_Auto 类,应该足以满足大多数目的。

实例

要临时使用astropy打包的IERS-B文件:

>>> from astropy.utils import iers
>>> from astropy.time import Time
>>> iers_b = iers.IERS_B.open(iers.IERS_B_FILE)
>>> with iers.earth_orientation_table.set(iers_b):
...     print(Time('2000-01-01').ut1.isot)
2000-01-01T00:00:00.355

要在整个会话中使用最新的IERS-A文件:

>>> iers_a = iers.IERS_A.open(iers.IERS_A_URL)  
>>> iers.earth_orientation_table.set(iers_a)  
<ScienceState earth_orientation_table: <IERS_A length=17463>...>

回到默认状态 IERS_Auto ):

>>> iers.earth_orientation_table.set(None)  
<ScienceState earth_orientation_table: <IERS_Auto length=17428>...>

方法总结

validate \(值)

如果需要,请验证该值并将其转换为其本机类型。

方法文件

classmethod validate(value)[源代码]#

如果需要,请验证该值并将其转换为其本机类型。