get_effective_time
- lstchain.reco.utils.get_effective_time(events)
Calculate the effective observation time of a set of real data events from a sky observation. delta_t (s) must be the time elapsed from the previous triggered event, regardless of whether the list of events contains all triggered events or not. It can be a list only of events which e.g. have valid image parameters. Besides delta_t, each event must have dragon_time, a timestamp (s)
- Parameters:
- events: pandas DataFrame or astropy.table.QTable
- If a dataframe, units are assumed to be seconds
- Returns:
- t_eff: astropy Quantity (in seconds, if input has no units)
- t_elapsed: astropy Quantity (ditto)