geetools._deprecated_utils#

Legacy util functions.

Module Contents#

Functions#

castImage(value)

Cast a value into an ee.Image if it is not already.

dict2namedtuple(thedict[, name])

Create a namedtuple from a dict object. It handles nested dicts.

evaluate(obj, callback, args)

Retrieve eeobject value asynchronously. First argument of callback.

formatVisParams(visParams)

Format visualization parameters.

getReducerName(reducer)

Get the name of the parsed reducer.

makeName(img, pattern[, date_pattern, extra])

Make a name with the given pattern.

maskIslands(mask, limit[, pixels_limit])

Returns a new mask where connected pixels with less than 'limit'.

reduceRegionsPandas(data[, index, add_coordinates, ...])

Transform data coming from Image.reduceRegions to a pandas dataframe.

geetools._deprecated_utils.castImage(value)[source]#

Cast a value into an ee.Image if it is not already.

geetools._deprecated_utils.dict2namedtuple(thedict, name='NamedDict')[source]#

Create a namedtuple from a dict object. It handles nested dicts.

geetools._deprecated_utils.evaluate(obj, callback, args)[source]#

Retrieve eeobject value asynchronously. First argument of callback.

geetools._deprecated_utils.formatVisParams(visParams)[source]#

Format visualization parameters.

geetools._deprecated_utils.getReducerName(reducer)[source]#

Get the name of the parsed reducer.

geetools._deprecated_utils.makeName(img, pattern, date_pattern=None, extra=None)[source]#

Make a name with the given pattern.

geetools._deprecated_utils.maskIslands(mask, limit, pixels_limit=1000)[source]#

Returns a new mask where connected pixels with less than ‘limit’.

geetools._deprecated_utils.reduceRegionsPandas(data, index='system:index', add_coordinates=False, duplicate_index=False)[source]#

Transform data coming from Image.reduceRegions to a pandas dataframe.