SensorData#
The SensorData class stores timeseries data from sensors at a station. It is used for handling, processing, and analyzing observational data.
SensorData objects are usually accessed via the .sensordata attribute of Station or Dataset objects.
Constructor#
|
Holds data for one station for one sensor. |
Attributes#
A summary of all the attributes (and properties) of the SensorData class.
SensorData DataFrame constructor. |
|
Return a DataFrame of the outlier records. |
|
Return a DataFrame of the gap records. |
|
Return the name of the station this SensorData belongs to. |
|
Return the timezone of the stored timestamps. |
|
Return the start datetime of the series. |
|
Return the end datetime of the series. |
|
Return the frequency of the series. |
Methods#
A summary of all methods in the SensorData class.
|
Retrieve and optionally print basic information about the sensor data. |
Convert all outliers to gaps. |
|
Create gap status overview DataFrame with one row per gap period. |
|
|
Resample to a new time resolution. |
Generate quality control (QC) frequency statistics. |
|
|
Fill gaps using model data. |
|
Interpolate gaps in the data. |
Convert the data records to the standard units defined in the observation type. |
|
|
A wrapper on the pandas.series.plot function for SensorData. |
|
Perform a gross value check on the series. |
|
Perform a persistence check on the series. |
|
Perform a repetitions check on the series. |
|
Perform a step check on the series. |
|
Perform a window variation check on the series. |
Convert Sensordata (observations, including labels) to an xarray.Dataset. |
Special methods#
The SensorData class implements several Python special methods for convenience:
__add__: Combine two SensorData objects, using the ‘other’ for duplicated timestamps. Note that all gaps and outliers are reset!__eq__: Test equality between two SensorData objects.__str__and__repr__: String representations for printing and debugging.copy: Create a (deep) copy of the Sensordata.