Open-EO / openeo-r-client

R client package for working with openEO backends
https://open-eo.github.io/openeo-r-client
Apache License 2.0
61 stars 17 forks source link

User Defined functions #157

Closed zzznelsonsm closed 4 weeks ago

zzznelsonsm commented 1 month ago

I am trying to create a user defined function for soil adjusted vegetation index. Any help on this code? THANKS!

savi_function = function(x,context) { B08 = data[7] B04 = data[3] B02 = data[1] B03= data[2] 1.5*(B08-B03)/(B08+ + B04 +.5)}

savi_function

savi_process = create_user_process(savi_function,id = "savi") savi_process

m-mohr commented 4 weeks ago

What's the error you are encountering? Which backend are you using? Please post a fully reproducible code example.

Closing until we receive further information.