A Lomb–Scargle periodogram asks how well periodic models match observations taken at irregular times. A gap of twenty minutes in a sensor log remains a twenty-minute gap in the model. The search compares candidate frequencies using the original timestamps. Before interpreting a peak, check whether the software takes cycles per time unit or angular frequency in radians per time unit. The same physical candidate has a different numeric value in those two conventions.
Suppose an invented equipment log records a process at 0, 0.4, 1.1, 1.7, 2.9, 3.2, 4.55, 6.05, 7.4 and 8.8 seconds. The intervals range from 0.3 to 1.5 seconds. Replacing time with the row number would make every gap identical and move the observations to different phases. For this simple example, each reading is generated from a periodic signal with a baseline of 12, a cosine coefficient of 1.8 and a sine coefficient of 0.6, all at 0.75 cycles per second.

There is no need to invent values for the intervals between the measurements in order to test a frequency. At each candidate, build a cosine column and a sine column by evaluating those waves at the actual recorded times. Fit their coefficients to the recorded values. A floating-mean model adds a constant column so the fit can estimate the baseline with the two sinusoidal coefficients.
Frequency f is measured in cycles per second when time is in seconds. Angular frequency ω is measured in radians per second and equals 2π times f. A model can therefore be written with cos(2πft) or cos(ωt); the argument describes the same phase. For the example, 0.75 cycles per second corresponds to 1.5π radians per second, approximately 4.7124. Its period is four thirds of a second.
Astropy’s LombScargle interface uses cycles per time unit. SciPy’s signal.lombscargle takes angular frequencies. Passing the bare number 0.75 to the latter tests about 0.1194 cycles per second. That corresponds to a period of about 8.38 seconds. Both are valid numbers, but they describe different physical candidates. Preserve the unit when saving a candidate list, plotting a frequency axis, or transferring results between libraries.

An average over the observations can differ from the baseline of the continuous signal. Irregular times may sample one phase more often than the opposite phase. Even subtracting the arithmetic mean from the observations can leave a discrepancy between the fitted sinusoid and the true baseline. In a floating-mean fit, the constant is estimated for each candidate frequency at the same time as the wave coefficients. The source timestamp and measurement arrays stay paired during that operation.
For the invented data, a fit at 0.75 cycles per second can recover the three generating coefficients to numerical precision. The constant model has positive residual error because the readings vary. For a simple goodness-of-fit comparison, calculate how much each candidate reduces that residual error. Published tools expose different periodogram normalizations, so compare scores after recording the formula and normalization used.
A coarse grid may fall between candidate peaks. A finer grid can describe a feature more clearly, but it does not supply new observations. The span of the timestamps, gaps, noise levels and periodic structure in the sampling pattern all matter when interpreting nearby peaks. A high peak in a practical log is evidence to examine alongside the residuals, the sampling schedule and any relevant operating records.
If observations come from repeated collection windows, inspect the separation of those windows. Several candidate frequencies may have similarly good fits over the short observed fragments. Retain the original timestamps and compare the wave predictions in the intervals where observations exist. That comparison can distinguish a convincing fit from one that only looks good on a freestanding periodogram.
Save the timestamp units and origin, candidate frequencies and their units, weighting and offset settings, and the normalization. An independent reader can then evaluate the fitted model directly at the original observations. Keep the period alongside the frequency when reporting an equipment cycle to make the result easier to compare with its expected physical timescale.
A useful cross-check is to express the same timestamps in milliseconds. One second becomes one thousand numerical time units, so the cycles-per-millisecond candidate is 0.00075. The angular frequency in radians per millisecond is 1.5π divided by one thousand. The phases at each observation and the fitted values stay the same after both conversions. Converting only the timestamps would test a different physical frequency, even if the plotted x-axis still carried the original label.
Source notes. Astropy’s Lomb–Scargle guide defines its frequency convention and illustrates irregular samples. SciPy’s reference describes angular frequency and the floating-mean model. The ten readings and generating signal above are original. See also the site’s analysis resources and technical article directory.