Good Day,
I am currently trying to use the request builder OGC NDVI layer with my own custom script as below:
let ndvi = (B08 - B04) / (B08 + B04);
if (ndvi >= 0 && ndvi < 0.2) return [208, 0, 0];
else if (ndvi >= 0.2 && ndvi < 0.3) return [249, 72, 75];
else if (ndvi >= 0.3 && ndvi < 0.4) return [255, 158, 74];
else if (ndvi >= 0.4 && ndvi < 0.5) return [254, 207, 50];
else if (ndvi >= 0.5 && ndvi < 0.6) return [253, 255, 0];
else if (ndvi >= 0.6 && ndvi < 0.7) return [139, 238, 16];
else if (ndvi >= 0.7 && ndvi < 0.8) return [39, 192, 75];
else return [39, 192, 75];
However, every time I run the request it gives me the following error no matter how small or big the bounding box is:
The format type is application/json format.
I am unsure how to rectify this issue as it was working on a trial account of my own, but when I switched to the product owners account which he set up and tried using it, it has been giving me the above mentioned issue.
Kind Regards