table_to_regions

grizli.catalog.table_to_regions(table, output='ds9.reg', comment=None, header='global color=green width=1', size=0.5, use_ellipse=False, use_world=True, verbose=True, unit_offset_colums=['x'], scale_major=1, extra=None)[source]

Make a DS9 region file from a table object

Parameters
tableTable

Table object

outputstr

Output filename. Default is ds9.reg.

commentlist of str

Comment for each region. Default is None.

headerstr

DS9 region file header. Default global color=green width=1.

sizefloat

Default size for circles. Default is 0.5 arcsec.

use_ellipsebool

Use ellipse regions if available. Default is False.

use_worldbool

Use “WORLD” coordinates if available. Default is True.

verbosebool

Messaging to terminal. Default is True.

unit_offset_columslist

Columns that are 1-indexed. Default is [“x”].

scale_majorfloat

Scale factor for major axis of ellipse regions. Default is 1.

extralist of str

Extra text to add to each region line. Default is None.