AffineCoordinates

class glue.core.coordinates.AffineCoordinates(matrix, units=None, labels=None)[source]

Bases: glue.core.coordinates.WCSCoordinates

Coordinates determined via an affine transformation represented by an augmented matrix of shape N+1 x N+1 matrix, where N is the number of pixel and world coordinates. The last column of the matrix should be used for the translation term, and the last row should be set to 0 except for the last column which should be 1.

Note that the order of the dimensions in the matrix (x, y) should be the opposite of the order of the order of dimensions of Numpy arrays (y, x).