get_nearest_az_node

lstchain.high_level.interpolate.get_nearest_az_node(irf_params_sel, index, irf_params_full, target_params_full, az_idx)

Check to see if a given IRF node overlaps with another node, in the interpolation parameter space, and to select based on the azimuth angle, the nearest node to the target.

All interp_params objects are assumed to generated with the same IRF list.

Parameters:
irf_params_sel: interp_params object for the interpolation parameters-based

information. ‘dict’

index: index of the list of IRF node information to compare.

‘int’

irf_params_full: interp_params object for all parameters information.

‘dict’

target_params_full: interp_params object for all parameters information of

the target. ‘dict’

az_idx: index of azimuth information (AZ_PNT) in the main dict information

used for the target. ‘int’

Returns:
idx: index of the IRF node information with the closest azimuth value as

with the target. ‘int’