CONAN.get_files.get_TESS_data.mask_points#
- CONAN.get_files.get_TESS_data.mask_points(time_ranges={}, flux_ranges={}, verbose=True)#
Mask out points in the light curve based on given time ranges and/or flux ranges. :param time_ranges: Dictionary of time ranges to mask for each sector. keys are sector numbers and values are list of tuples of (start_time, end_time). Default is empty dict.
e.g. time_ranges={19:[(200, 300),(1234,1250)]} will mask points from sector 19 between time 200-300 and 1234-1250.
- Parameters:
flux_ranges (dict) – Dictionary of flux ranges to mask for each sector. keys are sector numbers and values are list of tuples of (min_flux, max_flux). Default is empty dict. e.g. flux_ranges={21:[(0,0.98), (1.001,1.2)]} will mask points from sector 21 with flux between 0-0.98 and 1.001-1.2.
verbose (bool) – If True, print information about masked points. Default is True.
Examples
>>> # mask points from sector 19 using time_ranges and from sector 21 using flux ranges >>> df.mask_points(time_ranges={19:[(200, 300),(1234,1250)]}, flux_ranges={21:[(0,0.98), (1.001,1.2)]})