I am trying to plot the time series chart of the detected water area by otsu's method in Sentinel-1 images as a smoothed average curve.
I found two approaches to this for the Google Earth Engine:
- Using the Savitzky-Golay filter or
- Smoothing via moving time window
Actually the first variant with Savitzky-Golay filter is very brilliant. Unfortunately the time scale from a certain point in time is considered here and I would use the original 'system:time_start' for the chart.
So I used the second variant with moving time window. The problem here is that the calculated average is far to high and the bad performance. When viewing a longer period of several months I get the following error 'Error generating chart: Computation timed out'.
Here is the code in Google Earth Engine: https://code.earthengine.google.com/94d17969df4c88abc7b59dfd9ecda3a9
Can someone tell me where the problem is or does anyone know a better solution?
I would be very happy about a clue.