add_zd_interpolation_info

lstchain.reco.dl1_to_dl2.add_zd_interpolation_info(dl2table, training_pointings)

Compute necessary parameters for the interpolation of RF predictions between the zenith pointings of the MC data in the training sample on which the RFs were trained.

Parameters:
dl2tablepandas.DataFrame

DataFrame containing DL2 information, including ‘alt_tel’ and ‘az_tel’. Four columns will be added: alt0, alt1, w0, w1. alt0 and alt1 are the alt_tel values (telescope elevation, in radians) of the closest and second-closest training MC pointings (closest in elevation, on the same side of culmination) for each event in the table. The values w0 and w1 are the corresponding weights that, multiplied by the RF predictions at those two pointings, provide the interpolated result for each event’s pointing.

training_pointingsastropy.table.Table

Table containing the pointings (zd, az) of the MC training nodes.

Returns:
pandas.DataFrame

Updated DL2 pandas dataframe with additional columns alt0, alt1, w0, w1.