read_fits_polygons¶
- pydl.pydlutils.mangle.read_fits_polygons(filename, convert=False)[source]¶
Read a “polygon” format FITS file.
This function returns a subclass of
FITS_recthat provides some convenient aliases for the columns of a typical FITS polygon file (which might be all upper-case).- Parameters
- filename
str Name of FITS file to read.
- convert
bool, optional If
True, convert the data to a list ofManglePolygonobjects. Caution: This could result in some data being discarded!
- filename
- Returns
- :class:`~pydl.pydlutils.mangle.FITS_polygon` orclass:
list The data contained in HDU 1 of the FITS file.
- :class:`~pydl.pydlutils.mangle.FITS_polygon` orclass: