open-geocomputing / OpenEarthEngineLibrary

https://www.open-geocomputing.org/OpenEarthEngineLibrary/
129 stars 39 forks source link

Savitzky-Golay #10

Closed Hisschao closed 2 years ago

Hisschao commented 2 years ago

The d_1_ndvi value after sg filtering is very small, what is the reason for this?

mgravey commented 2 years ago

can you send a GEE link ?

Hisschao commented 2 years ago

https://code.earthengine.google.com/a781f2d3b5242c6fe849602b254d3a21

mgravey commented 2 years ago

oh, I see what you mean by very low then. I fact this is due to the use of "system:time_start" that is the time encoded in millisecond, if you want the derivate in second simply multiply by 1000, same for per days multiply by 8.64e7, etc.

Hisschao commented 2 years ago

Thank you for your answer.

Hisschao commented 2 years ago

Thank you for your patience with my question. Another question I want to ask is: How do I get the first derivative of the VI time series when I use a filter other than SG (eg harmonic model)?

mgravey commented 2 years ago

d1 IS the first derivative !!

Hisschao commented 2 years ago

Thank you, if SG is not used as a filter, can d1 be used as the first derivative?

mgravey commented 2 years ago

sure but it's not the derivate of the raw signal, it's the derivate of the filtered signal