setProperties#
- geetools.ee_asset.Asset.setProperties(**kwargs)#
Set properties of the asset.
- Parameters:
**kwargs – The properties to set key, value pairs. To name normal properties simply use the name as key. For system properties, prefix it with “system:”. Note that only the “time_start” and “time_end” are editable.
- Return type:
ee.Asset
Examples
# dates need to be set in milliseconds start = dt.datetime(2021, 1, 1).timestamp() * 1000 asset = ee.Asset("projects/ee-geetools/assets/folder/image") asset.setProperties(**{"description": "new_description", "system:time_start": start})