DynamicMatrixTransform#

class astropy.coordinates.DynamicMatrixTransform(matrix_func, fromsys, tosys, priority=1, register_graph=None)[源代码]#

基类:BaseAffineTransform

一种坐标变换,被指定为一个能产生3×3笛卡尔变换矩阵的函数。

这与StaticMatrixTransform相似,但不同于StaticMatrixTransform,因为此类的矩阵可能依赖于帧属性。

参数:
matrix_func : callable()Python:Callable()

具有签名的可调用文件 matrix_func(fromcoord, toframe) 并返回一个3x3矩阵 fromcoord 以笛卡尔坐标系表示。

fromsys

要开始的坐标系类。

tosys

要转换为的坐标系类。

priority : floatintPYTHON:FLOAT或PYTHON:INT

当找到最短坐标变换路径时,此变换的优先级-大数为低优先级。

register_graph : TransformGraph or NoneTransformGraph或PYTHON:无

用于在创建时注册此转换的图形,或 None 不登记。

加薪:
TypeError

如果 matrix_func 不可调用