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.ndarray of floats) – input HS data

  • dates (1D numpy.ndarray of numpy.datetime64 dtype) – 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.ndarray of bools