A python script that reads an input list of X,Y values and text strings (from a file), a color and size and generates a text egions file for use in ds9. The input file needed for this code consistes of lines with X,Y,name:
% text_file_ds9.py usage: text_file_ds9.py [-h] [-v] arg1 arg2 arg3 text_file_ds9.py: error: too few arguments % text_file_ds9.py -h usage: text_file_ds9.py [-h] [-v] arg1 arg2 arg3 positional arguments: arg1 Text file name arg2 color arg3 font size optional arguments: -h, --help show this help message and exit -v, --verbose Verbose responses If our input file is named "text.xy", then: % text_file_ds9.py text.xy red 9 > text.regHence, we could use the file "text.reg" to overplot the text strings of "text.xy" onto a ds9-rendered image. Here is a sample text.xy file:
% cat text.xy # Location of galaxies # data 320.0 512. NGC7793 455.0 840.0i NGC4618 100.0 150.0 NGC224