get_dl2_mean#
- magicctapipe.io.get_dl2_mean(event_data, weight_type='simple', group_index=['obs_id', 'event_id'])[source]#
Gets mean DL2 parameters per shower event.
- Parameters:
- event_data
pandas.DataFrame Data frame of shower events
- weight_type
str, optional Type of the weights for telescope-wise DL2 parameters - “simple” does not use any weights for calculations, “variance” uses the inverse of the RF variance, and “intensity” uses the linear-scale intensity parameter
- group_index
list, optional Index to group telescope events
- event_data
- Returns:
pandas.DataFrameData frame of the shower events with mean DL2 parameters
- Raises:
ValueErrorIf the input weight type is not known