lightkurve.LightCurve.truncate#

LightCurve.truncate(before: Optional[float] = None, after: Optional[float] = None, column: str = 'time')[source]#

Truncates the light curve before and after some time value.

Parameters
beforefloat

Truncate all rows before this time value.

afterfloat

Truncate all rows after this time value.

columnstr, optional

The name of the column on which the truncation is based. Defaults to ‘time’.

Returns
truncated_lcLightCurve

The truncated light curve.