geetools.Asset.Asset.is_type#

geetools.Asset.Asset.is_type(asset_type, raised=False)#

Return True if the asset is of the specified type.

Parameters:
  • asset_type (str) – The asset type to check for.

  • raised – If True, raise an exception if the asset is not corresponding to the type. Defaults to False.

Return type:

bool

Examples

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