geetools.ComputedObject.isInstance#

geetools.ComputedObject.isInstance(self, klass)#

Return 1 if the element is the passed type or 0 if not.

Parameters:

klass (Type) – The class to check the instance of.

Returns:

1 if the element is the passed type or 0 if not.

Return type:

ee.Number

Examples

import ee, geetools

ee.Initialize()

s = ee.String("foo").isInstance(ee.String)
s.getInfo()