BaseAffineTransform¶
-
class
astropy.coordinates.BaseAffineTransform(fromsys, tosys, priority=1, register_graph=None)[source]¶ Bases:
astropy.coordinates.CoordinateTransformBase class for common functionality between the
AffineTransform-type subclasses.This base class is needed because
AffineTransformand the matrix transform classes share the_apply_transform()method, but have different__call__()methods.StaticMatrixTransformpasses in a matrix stored as a class attribute, and both of the matrix transforms pass inNonefor the offset. Hence, user subclasses would likely want to subclass this (rather thanAffineTransform) if they want to provide alternative transformations using this machinery.