astropy:docs

static_transform_matrix

astropy.coordinates.transformations.static_transform_matrix(fromsys, tosys, priority=1)[source] [edit on github]

A function decorator for defining transformations between coordinate systems using a matrix.

The decorated function should accept no arguments and yield a 3 x 3 matrix.

Note

If decorating a static method of a class, @staticmethod should be added above this decorator.

Parameters:

fromsys : class

The coordinate system this function starts from.

tosys : class

The coordinate system this function results in.

priority : number

The priority if this transform when finding the shortest coordinate tranform path - large numbers are lower priorities.