Timeline for Iterating over dates to extract precipitation in Google Earth Engine
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 2, 2021 at 18:29 | comment | added | egm | Thank you so much!!! Your solution now does exactly what I was looking for. Cheers | |
Mar 2, 2021 at 18:28 | vote | accept | egm | ||
Mar 2, 2021 at 7:28 | history | edited | JonasV | CC BY-SA 4.0 |
Corrected answer
|
Mar 2, 2021 at 7:26 | comment | added | JonasV |
You can do it with .reduceRegion() instead. It makes it a bit easier and conceptually more correct I think. I updated my answer, have a look.
|
|
Mar 1, 2021 at 16:35 | comment | added | egm |
The end goal is to have a sum precipitation in each site (feature) for 10 days before the sampling date. So I'll need a sum precipitation for each site - date combination in the CSV list. If there is another way of doing it without sampleRegion that's great. I didn't know how else to get the precipitation at that exact feature/site location. Thanks so much again for looking into this!
|
|
Mar 1, 2021 at 15:21 | comment | added | JonasV |
Ah, sorry. One question before I update my answer: Do you mean to use sampleRegions() . Is your end goal just to have the total precipitation sum for every feature? Or do you want all the precipitation sums that intersect with your feature individually?
|
|
Mar 1, 2021 at 15:06 | comment | added | egm |
Thanks so much @JonasV! I see what you did there. The s1 in the collection (sampleRegions) creates an error. I tried using the original coord file but the returned FeatureCollection is empty. Can you please have another look? I made the link and table public (sorry about that!).
|
|
Mar 1, 2021 at 7:35 | history | answered | JonasV | CC BY-SA 4.0 |