WCSMapper

class ginga.canvas.coordmap.WCSMapper(viewer)[source]

Bases: BaseMapper

A coordinate mapper that maps to the viewer in WCS coordinates.

Methods Summary

data_to(data_pts[, viewer])

offset_pt(pts, offset)

Offset a point specified by pt, by the offsets offset.

rotate_pt(pts, theta, offset)

Rotate a point specified by pt by the angle theta (in degrees) around the point indicated by offset.

to_data(wcs_pts[, viewer])

Methods Documentation

data_to(data_pts, viewer=None)[source]
offset_pt(pts, offset)[source]

Offset a point specified by pt, by the offsets offset. Coordinates are assumed to be in the space defined by this mapper.

rotate_pt(pts, theta, offset)[source]

Rotate a point specified by pt by the angle theta (in degrees) around the point indicated by offset. Coordinates are assumed to be in the space defined by this mapper.

to_data(wcs_pts, viewer=None)[source]