geetools.ImageCollectionAccessor.integral#
- geetools.ImageCollectionAccessor.integral(band, time='system:time_start', unit='')#
Compute the integral of a band over time or a specified property.
- Parameters:
band (str) – the name of the band to integrate
time (str) – the name of the property to use as time. It must be a date property of the images.
unit (str) – the time unit use to compute the integral. It can be one of the following: [“year”, “month”, “day”, “hour”, “minute”, “second”]. If non is set, the time will be normalized on the integral length.
- Returns:
An Image object with the integrated band for each pixel
- Return type:
ee.Image
Examples
import ee, LDCGEETools collection = ( ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA") .filterBounds(ee.Geometry.Point(-122.262, 37.8719)) .filterDate("2014-01-01", "2014-12-31") ) integral = collection.ldc.integral("B1") print(integral.getInfo())