barak.io.sex_to_DS9reg¶
- barak.io.sex_to_DS9reg(filename, s, colour='green', tag='all', withtext=False)[source]¶
Write a DS9 region file from SExtractor output.
Parameters : filename : str
Region file name.
s : array
The output of readsex.
colour : str (‘green’)
Region colour. One of {cyan blue magenta red green yellow white black}
tag : str (‘all’)
DS9 tag for all the regions
with_text : bool (False)
If True, then mark each region with either its magnitude (if given), otherwise its index in the input array s.