Class for creating image cubes.
This class emcompasses all of the cube making functionality. In the current version this means creating image cubes fits files from TESS full frame image sets. Future versions will include more generalized cubing functionality.
make_cube(self, file_list[, cube_file, …])
Turns a list of fits image files into one large data-cube.
make_cube(self, file_list, cube_file='img-cube.fits', sector=None, verbose=True)¶
Turns a list of fits image files into one large data-cube. Input images must all have the same footprint and resolution. The resulting datacube is transposed for quicker cutouts. This function can take some time to run and requires enough memory to hold the entire cube in memory. (For full TESS sectors this is about 40 GB)
The list of fits image files to cube. Assumed to have the format of a TESS FFI: - A primary HDU consisting only of a primary header - An image HDU containing the image - A second image HDU containing the uncertainty image
Optional. The filename/path to save the output cube in.
Optional. TESS sector to add as header keyword (not present in FFI files).
Optional. If true intermediate information is printed.
- response: string or None
If successful, returns the path to the cube fits file, if unsuccessful returns None.