pydeltasnow.utils.get_zeropadded_gap_idxs

pydeltasnow.utils.get_zeropadded_gap_idxs(Hobs, require_leading_zero)[source]

Get indices of Nan data-gaps in Hobs that are surrounded or followed by zeros.

Parameters
  • Hobs (1D numpy.ndarray of floats) – input HS data

  • require_leading_zero (bool) – Whether to include gaps that do not have a leading zero but have a trailing zero.

Returns

zeropadded_gap_idxs

Return type

1D numpy.ndarray of bools