pydeltasnow.utils.get_small_gap_idxs¶
- pydeltasnow.utils.get_small_gap_idxs(Hobs, dates, max_gap_length)[source]¶
Create a boolean mask for valid small gaps.
Gap needs to be surrounded by values Dates need to be continuous between day before gap and day after gap
- Parameters
Hobs (1D
numpy.ndarrayof floats) – input HS datadates (1D
numpy.ndarrayofnumpy.datetime64dtype) – timestamps of the snow depth observations.max_gap_length (int) – Only gaps shorter or equal max_gap_length are valid.
- Returns
small_gap_idxs
- Return type
1D
numpy.ndarrayof bools