prose.Observation.keep_good_stars#

Observation.keep_good_stars(threshold=3.0, upper_threshold=35000.0, trim=10, keep=None, inplace=True)#

Keep only stars with a median flux higher than threshold*sky.

This action will reorganize stars indexes (target id will be recomputed) and reset the differential fluxes to raw.

Parameters:
  • threshold (float) – threshold for which stars with flux/sky > threshold are kept, default is 3

  • upper_threshold (float) – maximum value allowed for the peaks median in time, default is 35000

  • trim (int, optional) – value in pixels above which stars are kept, default is 10 to avoid stars too close to the edge, default is 10

  • keep (int or list, optional) – number of stars to exclude (starting from 0 if int), default is None (all stars kept)

  • inplace (bool) – whether to replace current object or return a new one, by default True

Returns:

_description_

Return type:

_type_