HADec

class astropy.coordinates.builtin_frames.HADec(*args, **kwargs)[源代码]

基类:BaseCoordinateFrame

时角赤纬系统中相对于WGS84椭球体的坐标或框架(赤道坐标)。小时角是相对于上顶点的方向,因此小时角向东为负,向西为正。

此框架假定为 包括 如果 pressure 帧属性为非零。

以下列出了框架属性 Other Parameters ,它们是从HADEC向其他系统转换所必需的。

参数
dataBaseRepresentation 子类实例BaseRepresentation子类实例

表示对象或 None 没有数据(或使用坐标分量参数,请参见下文)。

haAngle ,可选,仅关键字角度,可选,仅关键字

此对象的小时角 (dec 还必须给予和 representation 必须为None)。

decAngle ,可选,仅关键字角度,可选,仅关键字

此对象的赤道 (ha 还必须给予和 representation 必须为None)。

distance数量 [‘长度’] ,可选,仅关键字

这个物体沿视线的距离。

pm_ha_cosdec数量 [“角速度”] ,可选,仅关键字

以小时角为单位的自行(包括 cos(dec) 系数)用于该对象 (pm_dec 也必须给予)。

pm_dec数量 [“角速度”] ,可选,仅关键字

这个物体在赤经中的正常运动 (pm_ha_cosdec 也必须给予)。

radial_velocity数量 [“速度”] ,可选,仅关键字

这个物体的径向速度。

representation_typeBaseRepresentation 子类,str,可选BaseRepresentation子类,str,可选

表示类或表示类的字符串名称。这将设置预期的输入表示类,从而更改传入数据的预期关键字参数。例如,传递 representation_type='cartesian' 将使类期望具有笛卡尔名称的位置数据,即 x, y, z 在大多数情况下,除非通过 frame_specific_representation_info 。要查看此框架的名称,请查看 <this frame>().representation_info

differential_typeBaseDifferential 子类,str,dict,可选基差分子类,str,dict,可选

差分类别或差分类别词典(当前仅支持带有关键字‘s’的速度差异)。这将设置预期的输入差异类,从而更改传入数据的预期关键字参数。例如,传递 differential_type='cartesian' 将使类期待带有参数名称的速度数据 v_x, v_y, v_z 除非通过以下方式重写 frame_specific_representation_info 。要查看此框架的名称,请查看 <this frame>().representation_info

copy可选的布尔

如果 True (默认),复制输入坐标阵列。只能作为关键字参数传入。

其他参数
观察时间Time时间

进行观察的时间。用于确定地球的位置和方向。

位置EarthLocationEarthLocation

地球上的位置。这可以指定为 EarthLocation 对象或任何可以转换为 ITRS 框架。

pressure数量 [“压力”]

大气压力 Quantity 带压力单位。这是执行折射校正所必需的。将此值设置为0(默认值)将在转换到此帧/从该帧变换时禁用折射计算。

temperature数量 [“温度”]

地面温度 Quantity 以摄氏度为单位。这是进行折射校正所必需的。

relative_humidity数量 ['dimensionless'] 或者数字。

在0到1之间作为无量纲量的相对湿度。这是执行折射校正所必需的。

obswl数量 [‘长度’]
观测的平均波长 Quantity

以长度单位表示。这是执行折射校正所必需的。

笔记

折射模型基于ERFA中实现的模型,该模型速度很快,但在海拔约5度以下时会变得不准确。在海拔0附近和以下,它甚至可以给出无意义的答案,在这种情况下,转换为HADEC并返回到另一个帧可能会产生非常不同的结果。为了获得更好的数值稳定性,请将 pressure 在… 0 (默认设置),从而禁用折射校正并生成“地心”赤道坐标。

属性摘要

default_differential 

差异数据的默认表示法(例如,速度)

default_representation 

职位数据的默认表示法

frame_attributes 

frame_specific_representation_info 

帧特定组件名称的映射

location 

name 

obstime 

obswl 

pressure 

relative_humidity 

temperature 

方法总结

represent_as(base[, s, in_frame_units])

确保任何球形表示的包裹角度。

属性文档

default_differential

差异数据的默认表示法(例如,速度)

default_representation

职位数据的默认表示法

frame_attributes = {'location': <astropy.coordinates.attributes.EarthLocationAttribute object>, 'obstime': <astropy.coordinates.attributes.TimeAttribute object>, 'obswl': <astropy.coordinates.attributes.QuantityAttribute object>, 'pressure': <astropy.coordinates.attributes.QuantityAttribute object>, 'relative_humidity': <astropy.coordinates.attributes.QuantityAttribute object>, 'temperature': <astropy.coordinates.attributes.QuantityAttribute object>}
frame_specific_representation_info

帧特定组件名称的映射

location = None
name = 'hadec'
obstime = None
obswl = <Quantity 1. micron>
pressure = <Quantity 0. hPa>
relative_humidity = <Quantity 0.>
temperature = <Quantity 0. deg_C>

方法文件

represent_as(base, s='base', in_frame_units=False)[源代码]

确保任何球形表示的包裹角度。