sensortoolkit.calculate

The sensortoolkit.calculate subpackage contains various modules and methods for calculating parameter quantities (e.g., U.S. EPA’s Air Quality Index, dewpoint as derived from temperature and relative humidity measurements, etc.) and statistical performance evaluation metrics (e.g., CV, RMSE, Uptime, etc.).

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

sensortoolkit.calculate._aqi

This module is used to calculate the air quality index (AQI) as defined by U.S.

sensortoolkit.calculate._convert_temp

@Author:

sensortoolkit.calculate._cv

This module computes the coefficient of variation (CV), a measure of precision, for collocated sensors recording data concurrently.

sensortoolkit.calculate._dewpoint

This module estimates dewpoint via ambient temperature and relative humidity measurements made by independent temperature and relative humidity instruments running alonside sensors and FRM/FEM instrumentation at the evaluation site.

sensortoolkit.calculate._intersensor_mean

This module computes the average of parameter values across all conurrently recorded sensor measurements for each timestamp in the passed list of dataframes.

sensortoolkit.calculate._normalize

This module calculates normalized sensor concentrations.

sensortoolkit.calculate._nowcast_pm25

This module calculates U.S.EPA's NowCast for fine particulate matter (\(PM_{2.5}\)) for data recorded or averaged to 1-hour measurement intervals.

sensortoolkit.calculate._regression_stats

This module computes statistical metrics for the Ordinary Least Squares linear regression between sensor and FRM/FEM datasets (FRM/FEM as the dependent variable along the x-axis and sensor data as the independent variable along the y-axis).

sensortoolkit.calculate._rmse

This module computes the root mean square error for quantifying the error between sensor and FRM/FEM measurements.

sensortoolkit.calculate._uptime

This module computes the uptime for sensor or reference datasets.