In [1]:
import ee
ee.Initialize()
In [2]:
from geetools import tools
In [3]:
import ipygee as ui
In [4]:
test_image = ee.Image('LANDSAT/LT05/C01/T1_SR/LT05_226087_20000102')
In [5]:
date_band = tools.date.getDateBand(test_image, 'day')
In [6]:
ui.eprint(date_band)
In [7]:
image_date = date_band.get('day_since_epoch')
date_since_epoch = tools.date.dateSinceEpoch(image_date)
In [8]:
ui.eprint(date_since_epoch)
In [9]:
date = ee.Date('2000-01-02')
In [10]:
days = tools.date.unitSinceEpoch(date)
In [11]:
ui.eprint(days)
In [ ]: