geetools.Asset.Asset#
- class geetools.Asset.Asset(*args)#
An Asset management class mimicking the
pathlib.Path
class behaviour.Initialize the Asset class.
Note
An asset cannot be an absolute path like in a normal filesystem and thus any trailing “/” will be removed.
- property name#
Return the asset name.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.name
- property owner#
Return the asset owner (project name).
This method is only parsing the asset path and is not checking asset existence.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.owner
- property parent#
Return the direct parent directory.
It can go further up than the root folder if the asset is not absolute.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.parent
- property parents#
Return the parent directories from the root folder.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.parents
- property parts#
Return the asset parts of the path.
We will show all the parts from the root to the asset name. Remember that projects/user/assets is not part of the asset name but is part of the path.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.parts
- property st_size#
Return the byte size of the file.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.st_size
- property type: str#
Return the asset type.
Examples
asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.type
- Return type:
str
Methods#
|
Override the equal operator to compare the asset with other paths. |
|
Override the greater than or equal operator to compare the asset with other paths. |
|
Override the greater than operator to compare the asset with other paths. |
|
Override the in-place division operator to join the asset with other paths. |
|
Override the less than or equal operator to compare the asset with other paths. |
|
Override the less than operator to compare the asset with other paths. |
|
Override the not equal operator to compare the asset with other paths. |
|
Return the asset object representation as a string. |
|
Transform the asset id to a string. |
|
Override the division operator to join the asset with other paths. |
Transform the name of the Asset in to a description compatible string for a Task. |
|
|
Return the asset id as a posix path. |
|
Return the asset id as a uri. |
|
Copy the asset to a target destination. |
|
Alias for unlink. |
|
Return True if the asset exists and/or the user has access to it. |
Return a new path with expanded ~ constructs. |
|
|
Format a name to be accepted as a Task description. |
|
Return a list of assets matching the pattern. |
|
Return the root asset folder of the used cloud project. |
|
Return True if the asset is absolute. |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return True if the asset is relative to another asset. |
|
Return |
|
Check if the current asset is in the same project as the user. |
|
Get the list of children of a folder. |
|
Join the asset with other paths. |
|
Return True if the asset matches the patterns. |
|
Create a folder asset from the Asset path. |
|
Move the asset to a target destination. |
|
Return a list of assets matching the pattern recursively. |
|
Remove the asset folder. |
|
Remove the asset. |
|
Return the asset with the given name. |