sensortoolkit.datetime_utils

The sensortoolkit.datetime_utils subpackage contains various modules for working with pandas DataFrame objects with timeseries index of type pandas.DatetimeIndex. Modules are included for setting the timestamp index, averaging recorded datasets to longer averaging intervals (e.g., 1-hour, 24-hours), etc.

Clicking on each module below will open a page with a detailed description and list of functions included within the module.

sensortoolkit.datetime_utils._format_date

This module contains a method for returning a string indicating the current date in YYMMDD format.

sensortoolkit.datetime_utils._get_timestamp_interval

This module contains a method for determining the sampling frequency (interval) of passed dataframes with time-like index.

sensortoolkit.datetime_utils._set_datetime_index

This module contains a method for assigning the DateTime column as the pandas DataFrame index.

sensortoolkit.datetime_utils._time_averaging

This module calculates 1-hour and 24-hour averaged datasets from sensor and FRM/FEM recorded datasets.

sensortoolkit.datetime_utils._timeframe_utils

This module contains various methods for determining the overall (deployment) timeframe during which testing occurred by locating the extrema of recorded timestamps across all sensor datasets.