doyToDate#
- geetools.ee_image.ImageAccessor.doyToDate(year, dateFormat='yyyyMMdd', band='')#
Convert the DOY band to a date band.
This method only work with date formats that can be converted to numbers as earthengine images don’t accept string bands.
- Parameters:
- Returns:
The original image with the DOY band converted to a date band.
- Return type:
Examples
import ee, geetools ee.Initialize() image = ee.Image.random().multiply(365).toInt() vatican = ee.Geometry.Point([12.4534, 41.9033]).buffer(1) image = image.geetools.doyToDate(2023) print(image.reduceRegion(ee.Reducer.min(), vatican, 1).getInfo())