metobs_toolkit.dataset.Dataset.gross_value_check#

Dataset.gross_value_check(obstype: str = 'temp', lower_threshold: float = -15.0, upper_threshold: float = 39.0, whiteset: WhiteSet = WhiteSet(empty), use_mp: bool = True) None[source]#

Identify outliers based on thresholds.

Parameters:
  • obstype (str, optional) – The target observation to check. By default “temp”

  • lower_threshold (float, optional) – Thresholds to flag records below as outliers. The default is -15.0.

  • upper_threshold (float, optional) – Thresholds to flag records above as outliers. The default is 39.0.

  • whiteset (WhiteSet, optional) – A WhiteSet instance containing timestamps that should be excluded from outlier detection. Records matching the whiteset criteria will not be flagged as outliers. The default is an empty WhiteSet().

  • use_mp (bool, optional) – If True, the function will use multiprocessing to speed up the calculations. The default is False.

Return type:

None

Note

This method modifies the outliers in place and does not return anything. You can use the outliersdf property to view all flagged outliers.