geetools.accessors
#
Generic accessor to add extra function to the base GEE API classes.
Module Contents#
Functions#
|
Create an accessor through the provided namespace to a given class. |
|
Add a Accessor class to function through the provided namespace. |
- geetools.accessors.register_class_accessor(klass, name)[source]#
Create an accessor through the provided namespace to a given class.
- Parameters:
klass (Type) – The class to set the accessor to.
name (str) – The name of the accessor namespace
- Returns:
The accessor function to to the class.
- Return type:
Callable
- geetools.accessors.register_function_accessor(func, name)[source]#
Add a Accessor class to function through the provided namespace.
- Parameters:
func (Type) – The function to set the accessor to.
name (str) – The name of the accessor namespace.
- Returns:
The accessor function to to the function.
- Return type:
Callable