format#
- geetools.ImageAccessor.format(string, dateFormat='yyyy-MM-dd')#
Create a string from using the given pattern and using the image properties.
The
system_dateproperty is special cased to fit thedateFormatparameter.- Parameters:
- Returns:
The string corresponding to the image
- Return type:
Examples
import ee, geetools ee.Initialize() image = ee.Image('COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM') string = image.geetools.format('this is the image date: {system_date}') print(string.getInfo())