get_intervals¶
- get_intervals(context, calapp, spw_ids=None)[source]¶
Get the integration intervals for scans processed by a calibration.
The scan and spw selection is formed through inspection of the CalApplication representing the calibration.
- Parameters:
context -- the pipeline context
calapp -- the CalApplication representing the calibration
spw_ids -- a set of spw IDs to get intervals for. Leave as None to use all spws specified in the CalApplication.
- Returns:
a list of datetime objects representing the unique scan intervals