I have a set of time series data for a single year (365 records). The objective is to calculate the anomalies in the values. However, anomalies are not defined as the differences from the mean. Anomalies are defined as the difference from a baseline which in turn is defined as the sum of annual and semiannual harmonics.

Is there a possible way to extract the annual and semiannual harmonics of the time series data preferably using python?

Similar questions and discussions