Arithmetic

Functions

cos(obj) Element-wise cosine of an Image or ImageCollection.
log(obj) Element-wise natural log of an Image or ImageCollection.
log10(obj) Element-wise base 10 log of an Image or ImageCollection.
log2(obj) Element-wise 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) Element-wise sine of an Image or ImageCollection.
sqrt(obj) Element-wise square root of an Image or ImageCollection.
tan(obj) Element-wise tangent of an Image or ImageCollection.
cos(obj)[source]

Element-wise cosine of an Image or ImageCollection.

Can also be used with Int and Float types.

log(obj)[source]

Element-wise natural log of an Image or ImageCollection.

Can also be used with Int and Float types.

log10(obj)[source]

Element-wise base 10 log of an Image or ImageCollection.

Can also be used with Int and Float types.

log2(obj)[source]

Element-wise base 2 log of an Image or ImageCollection.

Can also be used with Int and Float 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]

Element-wise sine of an Image or ImageCollection.

Can also be used with Int and Float types.

sqrt(obj)[source]

Element-wise square root of an Image or ImageCollection.

Can also be used with Int and Float types.

tan(obj)[source]

Element-wise tangent of an Image or ImageCollection.

Can also be used with Int and Float types.