format_asset_id#

geetools.utils.format_asset_id(description)#

Format a name to be accepted as an asset Id.

The rule is: Each segment must contain only the following characters: a..z, A..Z, 0..9, “_” or “-“. Each segment must be at least 1 character long and at most 100 characters long.

Parameters:

description (str) – The description to format.

Returns:

The formatted description.

Return type:

str