metobs_toolkit.Dataset.update_gap_and_missing_fill_settings#

Dataset.update_gap_and_missing_fill_settings(gap_interpolation_method=None, gap_interpolation_max_consec_fill=None, gap_debias_prefered_leading_period_hours=None, gap_debias_prefered_trailing_period_hours=None, gap_debias_minimum_leading_period_hours=None, gap_debias_minimum_trailing_period_hours=None, automatic_max_interpolation_duration_str=None, missing_obs_interpolation_method=None)[source]#

Update fill settings for gaps and missing observations.

If None, the current setting is not updated.

Parameters:
  • gap_interpolation_method (str, optional) – The interpolation method to pass to numpy.interpolate. The default is None.

  • gap_interpolation_max_consec_fill (int, optional) – Maximum number of lacking observations to interpolate. This is passed to the limit argument of Numpy.interpolate. The default is None.

  • gap_debias_prefered_leading_period_hours (int, optional) – The preferd size of the leading period for calculating hourly biasses wrt the model. The default is None.

  • gap_debias_prefered_trailing_period_hours (int, optional) – The preferd size of the trailing period for calculating hourly biasses wrt the model. The default is None.

  • gap_debias_minimum_leading_period_hours (int, optional) – The minimum size of the leading period for calculating hourly biasses wrt the model. The default is None.

  • gap_debias_minimum_trailing_period_hours (int, optional) – The minimum size of the trailing period for calculating hourly biasses wrt the model. The default is None.

  • automatic_max_interpolation_duration_str (Timedelta or str, optional) – Maximum duration to apply interpolation for gapfill when using the automatic gapfill method. Gaps with longer durations will be filled using debiased modeldata. The default is None.

  • missing_obs_interpolation_method (str, optional) – The interpolation method to pass to numpy.interpolate. The default is None.

Return type:

None.