ronnyhdez / reclaimed_sites_ab

https://ronnyhdez.github.io/reclaimed_sites_ab/
0 stars 0 forks source link

Add system:time_start to features #95

Closed ronnyhdez closed 2 months ago

ronnyhdez commented 3 months ago
          Yes - you need a saved gee asset that is a feature collection.

Make sure each feature has a correct 'system:time_start" property as this is used to guide sampling times.

_Originally posted by @rfernand387 in https://github.com/ronnyhdez/reclaimed_sites_ab/issues/84#issuecomment-2147873560_

ronnyhdez commented 2 months ago

When using the following code:

sitesDictionaryL08SR = LEAF.sampleSites(
    site,
    imageCollectionName="LANDSAT/LC08/C02/T1_L2",
    algorithm=SL2PV0,
    variableName="Surface_Reflectance",
    maxCloudcover=90,
    outputScaleSize=30,
    inputScaleSize=30,
    bufferSpatialSize=0,
    bufferTemporalSize=["2021-04-01", "2022-10-01"],
    subsamplingFraction=0.99,
)

The returned message is:

Processing feature: 0  from  2021-04-01 00:00:00  to  2022-10-01 00:00:00

Which coincides with the values in the function parameters

ronnyhdez commented 2 months ago

Already created in GEE script random_polygons