OpenImg¶
-
class
pydis.
OpenImg
(file, trim=True)[source]¶ Bases:
object
A simple wrapper for astropy.io.fits (pyfits) to open and extract the data we want from images and headers.
- Parameters
- filestring
The path to the image to open
- trimbool, optional
Trim the image using the DATASEC keyword in the header, assuming has format of [0:1024,0:512] (Default is True)
- Returns
- image object