pyregion is a python module to parse ds9 region files. It also supports ciao region files.
Homepage : http://pyregion.readthedocs.org/
PyPI: http://pypi.python.org/pypi/pyregion
Installation: pip install pyregion
Lead developer: Jae-Joon Lee ([@leejjoon](http://github.com/leejjoon))
- ds9 and ciao region files.
- (physical, wcs) coordinate conversion to the image coordinate.
- convert regions to matplotlib patches.
- convert regions to spatial filter (i.e., generate mask images)
All files (see exception below) are under MIT License. See LICENSE.
- "lib/kapteyn_celestial.py" is from the Kapteyn package (http://www.astro.rug.nl/software/kapteyn/). See LICENSE_kapteyn.txt.
See also the in-development regions
package
at https://github.com/astropy/regions
a new astronomy package for regions based on Astropy.