davemlz / eemont

A python package that extends Google Earth Engine.
https://eemont.readthedocs.io/
MIT License
407 stars 69 forks source link

getTimeSeriesByRegion returns empty and repeated dates in dataframe #72

Closed mariofomacajr closed 2 years ago

mariofomacajr commented 2 years ago

Describe the bug When I extract a timeserie by point the final dataframe return a lot of empty rows for the same date. Sometimes the NDVI value appears only in one row.

image

Additional context Add any other context about the problem here. github eemont.zip

davemlz commented 2 years ago

Hi @mariofomacajr!

I just checked your code and everything is working fine :) You're getting exactly 4 images per day because your point is actually getting 4 different tiles of S2 (T22JCP, T22JCN, T22JBP, T22JBN).

You can do: After getting the time series as a data frame group by day and compute the average (or median) using pandas itself, or you can use wxee to do it before downloading the data. It is up to you!

Best,

David