write_fits_region

regions.write_fits_region(filename, regions, header=None)[source]

Converts list of regions to FITS region table and write to a file.

See Reading/writing to FITS region files

Parameters:
filename : str

Filename in which the table is to be written.

regions : list

List of regions.Region objects

header : Header

The FITS header