I was trying to get the bands to know the NVDI (B02, B03, B04, B05, B08 and B12) in my region but when I run the code, it show me the following error:
400 Client Error: Bad Request for url: https://sh.dataspace.copernicus.eu/api/v1/process
Server response: “{“status”: 400, “reason”: “Bad Request”, “message”: “Failed to evaluate script!\nevalscript.js:26: TypeError: Cannot read property ‘B08’ of undefined\n var denom = sample.B08+sample.B12;\n ^\nTypeError: Cannot read property ‘B08’ of undefined\n at calcNBR (evalscript.js:26:23)\n at evaluatePixel (evalscript.js:37:14)\n at executeForSingleScene (:1069:17)\n”, “code”: “RENDERER_EXCEPTION”}”
I’m usign Temporal analysis - burned area
My AOI is the Santander State in Colombia.
Thanks