geetools.Asset.Asset.is_absolute#

geetools.Asset.Asset.is_absolute(raised=False)#

Return True if the asset is absolute.

An absolute asset path starts with “projects” and contains “assets” at the 3rd position. We don’t check if the project name exist in this method, simply the sctructure of the path.

Parameters:

raised (bool) – If True, raise an exception if the asset is not absolute. Defaults to False.

Return type:

bool

Examples

asset = ee.Asset("projects/ee-geetools/assets/folder/image")
asset.is_absolute()