metobs_toolkit.Dataset.update_qc_settings#
- Dataset.update_qc_settings(obstype='temp', gapsize_in_records=None, dupl_timestamp_keep=None, persis_time_win_to_check=None, persis_min_num_obs=None, rep_max_valid_repetitions=None, gross_value_min_value=None, gross_value_max_value=None, win_var_max_increase_per_sec=None, win_var_max_decrease_per_sec=None, win_var_time_win_to_check=None, win_var_min_num_obs=None, step_max_increase_per_sec=None, step_max_decrease_per_sec=None, buddy_radius=None, buddy_min_sample_size=None, buddy_max_elev_diff=None, buddy_min_std=None, buddy_threshold=None, buddy_elev_gradient=None)[source]#
Update the QC settings for the specified observation type.
If a argument value is None, the default settings will not be updated.
- Parameters:
obstype (str, optional) – The observation type to update the quality control settings for. The default is ‘temp’.
gapsize_in_records (int (> 0), optional) – A gap is defined as a sequence of missing observations with a length greater or equal to this number, on the input frequencies. The default is None.
dupl_timestamp_keep (bool, optional) – Setting that determines to keep, or remove duplicated timestamps. The default is None.
persis_time_win_to_check (Timedelta or str, optional) – Time window for persistance check. The default is None.
persis_min_num_obs (int (> 0), optional) – Minimal window members for persistance check. The default is None.
rep_max_valid_repetitions (int (> 0), optional) – Maximal valid repetitions for repetitions check. The default is None.
gross_value_min_value (numeric, optional) – Minimal value for gross value check. The default is None.
gross_value_max_value (numeric, optional) – Maximal value for gross value check. The default is None.
win_var_max_increase_per_sec (numeric (> 0), optional) – Maximal increase per second for window variation check. The default is None.
win_var_max_decrease_per_sec (numeric (> 0), optional) – Maximal decrease per second for window variation check. The default is None.
win_var_time_win_to_check (Timedelta or str, optional) – Time window for window variation check. The default is None.
win_var_min_num_obs (int (> 0), optional) – Minimal window members for window variation check. The default is None.
step_max_increase_per_sec (numeric, optional) – Maximal increase per second for step check. The default is None.
step_max_decrease_per_sec (numeric (< 0), optional) – Maximal decrease per second for step check. The default is None.
buddy_radius (numeric (> 0), optional) – The radius to define neighbours in meters. The default is None.
buddy_min_sample_size (int (> 2), optional) – The minimum sample size to calculate statistics on. The default is None.
buddy_max_elev_diff (numeric (> 0), optional) – The maximum altitude difference allowed for buddies. The default is None.
buddy_min_std (numeric (> 0), optional) – The minimum standard deviation for sample statistics. This should represent the accuracty of the observations. The default is None.
buddy_threshold (numeric (> 0), optional) – The threshold (std units) for flaggging observations as buddy outliers. The default is None.
buddy_elev_gradient (numeric, optional) – Describes how the obstype changes with altitude (in meters). The default is -0.0065. The default is None.
- Return type:
None.
Note
The gap defenition is independend of the observation type, and is thus set for all the observation types.