sensortoolkit.qc._interval_downsampling

This module contains methods for applying downsampling methods to convert timeseries datasets at unevenly spaced sampling intervals to a uniform, evenly spaced interval (the downsampling interval).

The downsampling interval is determined based on the variation in the orginally recorded dataset. If, for instance, a sensor was set to record at 60 second intervals but the interval between consecutively recorded timestamps varied from 60 +/- 20 seconds, data may be downsampled to 120 second averages.


@Author:
Samuel Frederick, NSSC Contractor (ORAU)
U.S. EPA / ORD / CEMM / AMCD / SFSB
Created:

Tue Aug 17 10:55:08 2021

Last Updated:

Tue Aug 17 10:55:08 2021

Functions

apply_downsampling

Helper function for applying downsampled averaging to datasets for the passed downsampling interval.

downsampling_interval

Check if N times the median time delta is greater than the time delta at a threshold quantile (default is 99%) for each dataframe.

plot_recording_interval

Create a plot of the time delta interval vs.

plot_timedelta_quantiles

Plot timedelta vs.

sensor_timedelta

Create dataframe with time deltas (in seconds) between subsequent data entries.

timedelta_quantiles

Create quantile dataframe of time deltas for each dataset the in passed list of datasets (df_list).