R Package for harmonic modelling of time-series data

R Package for harmonic modelling of time-series data

April 23, 2020

Sentinel-2 NDVI time-series over the Steigerwald. Left: Original satellite scenes after cloud, cloud shadow and snow maksing. Right: Interpolated time-series using a harmonic modelling.

In order to fully exploit the monitoring potential of the satellite systems, challenges such as noise and data gaps must be effectively addressed. These quality losses are mainly caused by sensor artifacts, clouds, cloud shadows and other weather conditions (Verbesselt et al., 2012). In the context of time series analysis, harmonic modeling is a powerful tool to fill these gaps and reduce noise by smoothing the original signal (de Jong et al., 2011).

For that purpose, I created an R-package rHarmonics which enables the user to perform a harmonic analysis on a given time-series data set.

To calculate the harmonic fitted curve of a periodic signal, ordinary least squares regressions are computed using coupled sine and cosine curves on time-series data. The underlying algorithm which is based on Shumway & Stoffer (2017) equations 4.1 – 4.2 can be seen below:

MODIS NDVI time-series data together with a harmonic fitted curve using 3 cylces per year.



Literature:

de Jong, R., de Bruin, S., de Wit, A., Schaepman, M. E., & Dent, D. L. (2011). Analysis of monotonic greening and browning trends from global ndvi time-series. Remote Sensing of Environment, 115 (2), 692–702.

Shumway, R. H., & Stoffer, D. S. (2017). Time series analysis and its applications: with r examples. Springer.

Verbesselt, J., Zeileis, A., & Herold, M. (2012). Near real-time disturbance detection using satellite image time series. Remote Sensing of Environment, 123 , 98–108.

you may also like:

Successful fieldwork at the Naryn River in Kyrgyzstan

Successful fieldwork at the Naryn River in Kyrgyzstan

During the last week, EORC PI Florian Betz, EAGLE student Ariana Arguello-Cordero and FluBig team member Magdalena Lauermann from Catholic University Eichstätt-Ingolstadt have been on a field campaign in Kyrgyzstan to collect data for the FluBig project dedicated to...

EO4CAM Meeting in Oberpfaffenhofen

EO4CAM Meeting in Oberpfaffenhofen

On 5 June 2025, representatives from the Bavarian State Ministry of the Environment and Consumer Protection (StMUV), the Bavarian Environment Agency (LfU), and the German Aerospace Center (DLR) met at DLR Oberpfaffenhofen as part of the EO4CAM (Earth Observation...

EORC at the International Africa Festival 2025 in Würzburg

EORC at the International Africa Festival 2025 in Würzburg

If you know Würzburg, you certainly know the International Africa Festival, Europe's largest and oldest festival for African music and culture. For 15 years in a row now, the university tent has been an integral part of the festival. This is where the...

EO4CAM meeting at LfU in Augburg on grassland in Bavaria

EO4CAM meeting at LfU in Augburg on grassland in Bavaria

As part of the EO4CAM project (Earth Observation Laboratory for Climate Adaption and Mitigation), representatives of the Bavarian Environment Agency (LfU), the German Aerospace Centre (DLR), and the Earth Observation Research Cluster (EORC) met at the LfU in...

New R Package Enhances UAS Research and Planning

New R Package Enhances UAS Research and Planning

We’re excited to share the development of a new R package created by our PhD student, Antonio Castaneda Gomez, whose contributions to Uncrewed Aerial Systems (UAS) research continue to impress. Known as the brain behind many of our UAS data collection...