# 4.6.2. lag_calc

Functions to generate pick-corrections for events detected by correlation.

copyright: | EQcorrscan developers.
license: | GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

## 4.6.2.1. Classes & Functions

`lag_calc` | Main lag-calculation function for detections of specific events.

## 4.6.2.2. Private Functions

Note that these functions are not designed for public use and may change at any point.

`_channel_loop` | Inner loop for correlating and assigning picks.
`_day_loop` | Function to loop through multiple detections for one template.
`_prepare_data` | Prepare data for lag_calc - reduce memory here.
`_xcorr_interp` | Intrpolate around the maximum correlation value for sub-sample precision.