pysepal.scripts.gee.is_asset#

pysepal.scripts.gee.is_asset(asset_name=None, folder='', asset_id=None)[source]#

Check if the asset already exist in the user asset folder.

Parameters:
  • asset_name (str) – [DEPRECATED] the name of the asset (use asset_id instead)

  • folder (str | Path) – [DEPRECATED] the folder of the assets (use full asset_id instead)

  • asset_id (str) – the complete asset ID (e.g., ‘projects/your-project/assets/folder/asset_name’)

Returns:

true if asset exists, false otherwise

Return type:

bool

Deprecated since version 3.2.0: Use GEEInterface.get_asset() with not_exists_ok=True instead. The ‘asset_name’ and ‘folder’ parameters are deprecated. Use ‘asset_id’ directly.