Arithmetic¶
Functions
cos (obj) 
Elementwise cosine of an Image or ImageCollection . 
log (obj) 
Elementwise natural log of an Image or ImageCollection . 
log10 (obj) 
Elementwise base 10 log of an Image or ImageCollection . 
log2 (obj) 
Elementwise base 2 log of an Image or ImageCollection . 
normalized_difference (x, y) 
Normalized difference helper function for computing an index such as NDVI. 
sin (obj) 
Elementwise sine of an Image or ImageCollection . 
sqrt (obj) 
Elementwise square root of an Image or ImageCollection . 
tan (obj) 
Elementwise tangent of an Image or ImageCollection . 

cos
(obj)[source]¶ Elementwise cosine of an
Image
orImageCollection
.Can also be used with
Int
andFloat
types.

log
(obj)[source]¶ Elementwise natural log of an
Image
orImageCollection
.Can also be used with
Int
andFloat
types.

log10
(obj)[source]¶ Elementwise base 10 log of an
Image
orImageCollection
.Can also be used with
Int
andFloat
types.

log2
(obj)[source]¶ Elementwise base 2 log of an
Image
orImageCollection
.Can also be used with
Int
andFloat
types.

normalized_difference
(x, y)[source]¶ Normalized difference helper function for computing an index such as NDVI.
Example
>>> import descarteslabs.workflows as wf >>> col = wf.ImageCollection.from_id("landsat:LC08:01:RT:TOAR") >>> nir, red = col.unpack_bands(["nir", "red"]) >>> ndvi = wf.normalized_difference(nir, red)

sin
(obj)[source]¶ Elementwise sine of an
Image
orImageCollection
.Can also be used with
Int
andFloat
types.