Open-EO / openeo-earthengine-driver

openEO back-end driver for Google Earth Engine.
Apache License 2.0
21 stars 7 forks source link

save_result and palette option #58

Closed clausmichele closed 3 years ago

clausmichele commented 3 years ago

After trying the sample process graph with climatological_normal, I've noticed that in the process graph there's save_result with the palette option, how do you actually apply this? I do not understand what is mapping with 0 -> #2166AC 1 -> #4393C3 . Is the value 0 in the result mapped to the color #2166AC? What to do with values which are not mapped with a color?

image

Originally posted by @clausmichele in https://github.com/Open-EO/openeo.org/issues/8#issuecomment-704914272

m-mohr commented 3 years ago

We just pass that to GEE, so their docs apply: https://developers.google.com/earth-engine/guides/image_visualization#color-palettes

AFAIK is just creates a color gradient between the minimum and maximum using the given hex values, so there's not really direct mapping between values.

clausmichele commented 3 years ago

Ok, so it's not a functionality which is defined by save_result but only a specific feature you can offer using GEE.

m-mohr commented 3 years ago

Yes, file formats are all back-end dependent and not standardized.