metobs_toolkit.dataset.Dataset.convert_outliers_to_gaps#

Dataset.convert_outliers_to_gaps(all_observations: bool = True, obstype: str = 'temp') None[source]#

Convert outlier values in the observation data to gaps.

This method replaces outlier values with gaps, effectively marking them as missing. In practice, this method is used so that generated gaps can be filled, to obtain a continuous time series.

The operation can be applied to all observation types or a specific observation type.

Parameters:
  • all_observations (bool, optional) – If True, convert outliers to gaps for all observation types. If False, only convert outliers specified by the obstype argument. The default is False.

  • obstype (str, optional) – The type of observation to convert outliers for. This parameter is only used if all_observations is False. The default is “temp”.

Return type:

None

Warning

QC labels are lost when outliers are converted to gaps.