barak.io.write_DS9reg¶
- barak.io.write_DS9reg(x, y, filename=None, coord='IMAGE', ptype='x', size=20, c='green', tag='all', width=1, text=None)[source]¶
Write a region file for ds9 for a list of coordinates.
Parameters : x, y : arrays of floats, shape (N,)
The coordinates. These may be image or WCS.
filename : str, optional
A filename to write to.
coord : str (‘IMAGE’)
The coordinate type. For example IMAGE (pixel coordinates) or J2000.
ptype : str (‘x’)
DS9 point type. One of {circle box diamond cross x arrow boxcircle}
size : int (20)
DS9 point size.
c : str (‘green’)
point colour: one of {cyan blue magenta red green yellow white black}.
tag : str (‘all’)
DS9 tag.
width : int (1)