longest_contiguous_chunk#

elk.stats.longest_contiguous_chunk(times, largest_gap_allowed=0.25)[source]#

Create a mask for the largest contiguous chunk of observations

Parameters
timesndarray

Array of times at which observations were taken

largest_gap_allowedfloat, optional

Largest gap in the data which is allowed in a chunk (in days), by default 0.25

Returns
chunk_maskndarray

Boolean mask on observations in the largest chunk