Stack¶
-
class
dorado.
Stack
(data, flat=None, filter='', times=[], calibrated=None, aligned=None, target=None, alignTo=0)[source] [edit on github]¶ Bases:
object
The Stack class encapsulates correlated stacks of image objects and their associated data. Stack exceeds simply storing stacks of images in an array or list by expanding upon the array object to hold additional data about the image stack such as a WCS object, the enclosed target, and the correlated calibration frames.
- Attributes
- data: CCDdata array
Array of CCDdata images.
- flat: CCDdata
Flatfield calibration frame for data stack. Optional
- filter: str
Name of filter data was collected in. Optional.
- times: array or list-like
Time for each image as an ‘astropy.Time’ object. Optional.
- calibrated: Boolean
Whether the data is calibrated or not. Default is ‘None’. Optional.
- aligned: Boolean
Whether the data is aligned or not. Default is ‘None’. Optional.
- target: Zellars object
Instance of the Zellars astronomical target class containing the target of interest in the stack. Optional.
- alignTo: int
Index of the image which all other stack images should be aligned to. Default is 0. Optional.
Methods Summary
get_target_info
([target])get_target_info is a convinience function for setting an instance of Zellars as the Stack target object.
get_times sequences through the stack data and passes the FITS header timestamp for ‘DATE-OBS’ into ‘astropy.time’ and sets the resulting array of times as ‘self.times’.
Methods Documentation
-
get_target_info
(target=None)[source] [edit on github]¶ get_target_info is a convinience function for setting an instance of Zellars as the Stack target object.
- Parameters
- target: Zellars object
Instance of the Zellars astronomical target class containing the target of interest in the stack.
- Returns
- None
-
get_times
()[source] [edit on github]¶ get_times sequences through the stack data and passes the FITS header timestamp for ‘DATE-OBS’ into ‘astropy.time’ and sets the resulting array of times as ‘self.times’.
- Parameters
- None
- Returns
- self.times: array or list-like
array of ‘astropy.time’ objects for each image timestamp.