Hello,
I am using the Open Data Areas for testing.
here is my sample request using the provided byoc provided for the open data areas:
requestData.append(
'request',
JSON.stringify({
input: {
bounds: {
properties: { crs: 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' },
geometry: {
type: 'Polygon',
coordinates: [polygonCoordinates],
},
},
data: [
{
type: `byoc-4b4f9591-d988-4028-b759-f8a61a1976bc`,
dataFilter: { timeRange:
{ from: '2019-01-01T00:00:00Z',
to: '2019-12-31T23:59:59Z'
}
},
},
],
},
output: { responses: [{ identifier: 'default', format: { type: 'image/tiff' } }], },
})
);
requestData.append('evalscript', evalscript);
and this as the evalscript:
`//VERSION=3
function setup() {
return {
input: ["CB"],
output: { bands: 1, sampleType: 'FLOAT32' }
};
}
let factor = 1 / 1000;
function evaluatePixel(sample) {
return [sample.CH * factor]
};
`
I get an error:
{
"error": {
"status": 400,
"reason": "Bad Request",
"message": "Collection 'byoc-4b4f9591-d988-4028-b759-f8a61a1976bc' has no band 'CB'.",
"code": "RENDERER_EXCEPTION"
}
}
but the docs says that the band for crop biomass is indeed CB.Where could the problem be?
Thanks in advance

