pydeltasnow.utils.fill_small_gaps¶
- pydeltasnow.utils.fill_small_gaps(Hobs, dates, max_gap_length, method='linear')[source]¶
Interpolate small gaps in Hobs.
No extrapolation: data points before and after gap needed. Date continuity in the filled gaps + leading and trailing data point is ensured.
- Parameters
Hobs (1D
numpy.ndarray) – Snow depth data.dates (1D
numpy.ndarrayofnumpy.datetime64dtype) – timestamps of the snow depth observations.max_gap_length (int) – Only gaps shorter or equal max_gap_length are interpolated.
method (str, optional) – Interpolation method which will be passed to
pandas.Series.interpolate(). The default is ‘linear’.
- Returns
Hobs_intepolated – Snow depth data with filled gaps.
- Return type