wxee.time_series.TimeSeries.interval
- TimeSeries.interval(unit: str = 'day') Number [source]
Compute the mean time interval between images in the time series.
- Parameters:
unit (str, default "day") – The unit to return the time interval in. One of “minute”, “hour”, “day”, “week”, “month”, “year”.
- Returns:
The mean time interval between images.
- Return type:
ee.Number
Warning
Calculating the interval of very large collections may exceed memory limits. If this happens, try selecting only a portion of the collection dates.
Example
>>> ts = wxee.TimeSeries("COPERNICUS/S2_SR") >>> imgs = ts.filterBounds(ee.Geometry.Point([-105.787, 38.753])) >>> imgs.interval("day").getInfo() 5.03