metobs_toolkit.dataset.Dataset.gross_value_check#

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

Identify outliers based on thresholds.

Parameters:
  • target_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.

  • 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.