Aerosol1D
- class aerosoltools.aerosol1d.Aerosol1D(dataframe)
Class for handling 1D aerosol time series measurements.
This class manages time-indexed aerosol concentration data (e.g., total particle concentration). It provides utilities for resampling, smoothing, marking activity segments, cropping, shifting, summarizing, and plotting data. It is particularly suited for pre- and post-processing of aerosol datasets collected via portable or stationary particle counters.
Parameters
- dataframepandas.DataFrame
A DataFrame containing time-indexed aerosol data. If the index is not a DatetimeIndex, the first column will be interpreted as timestamps and set as the index automatically. The first data column is assumed to represent total particle concentration.
Notes
This class is intended for workflows that involve segmenting and analyzing time-resolved total aerosol concentration data. Users should interact primarily through public methods and properties, rather than modifying internal attributes directly.
Properties
List of defined activity labels. |
|
Dictionary of activity names and their associated time periods. |
|
Dataframe with all data, times, and activity columns if marked. |
|
Data type description of the measurements. |
|
List of defined activity labels. |
|
Instrument used for the measurements. |
|
Return overiew of meta data |
|
Unmodified original dataset. |
|
Serial number of instrument |
|
Timestamps of the dataset. |
|
Total concentration measurements. |
|
Unit of the measurements. |
Methods
Create a deep copy of the current Aerosol1D object. |
|
Extract data corresponding to a specified activity. |
|
Mark activities in the data by adding one boolean column per activity. |
|
Plot the total concentration over time. |
|
Summarize total concentration statistics for each defined activity, including 'All data'. |
|
Crop the data to a specified time window. |
|
Resample the data to a new time frequency using an aggregation function. |
|
Shift the time index by a given number of seconds and/or minutes. |
|
Apply rolling window smoothing to the data. |