bashes.display module

Supports interactive display to a separate DS9 process via XPA. For documentation of XPA see http://hea-www.harvard.edu/saord/ds9/ref/xpa.html

class bashes.display.Display(config=None)

Bases: object

Represents a connection with a running DS9 process.

config(cmds)

Sends commands separated by semicolons

get(cmd)
set(cmd)
show(image, min=None, max=None, config=None, reuseLimits=False)

Displays the specified image in a new frame. The image can be provided as a numpy array or a galsim Image type. Scale limits will be set automatically from the data unless min or max are specified. If reuseLimits is True and this is not the first frame, then min/max are ignored and the limits of the current frame are reused for this image. Any config commands provided in the optional cmds string will be sent. Separate multiple commands with semicolons. By default the frame is zoomed to fit, but this can be overridden in cmds.