Hello,
I try to run the following request:
{
"input": {
"bounds": {
"bbox": [
988442.4859182527,
1356849.7611704315,
991002.4859182527,
1359409.7611704315
],
"properties": {
"crs": "http://www.opengis.net/def/crs/EPSG/0/32647"
}
},
"data": [
{
"type": "S2L2A",
"processing": {
"upsampling": "NEAREST",
"downsampling": "NEAREST"
},
"dataFilter": {
"timeRange": {
"from": "2020-01-01T00:00:00+00:00",
"to": "2020-01-06T00:00:00+00:00"
},
"mosaickingOrder": "leastCC"
}
}
]
},
"output": {
"width": 128,
"height": 128,
"responses": [
{
"identifier": "B02",
"format": {
"type": "image/tiff"
}
},
{
"identifier": "B03",
"format": {
"type": "image/tiff"
}
}
]
}
with this evaluation script
//VERSION=3
function setup() {
return {
input: [{
bands: ['B02', 'B03'],
}],
output: [
{id: 'B02', bands: 1, sampleType: 'FLOAT32'},
{id: 'B03', bands: 1, sampleType: 'FLOAT32'}
]
}
}
function evaluatePixel(sample) {
var b02 = [sample.B02]
var b03 = [sample.B03]
return {
B02: b02,
B03: b03
}
}
I see that there is an internal server error (500) with the “Something went wrong” message and a RENDERER_EXCEPTION code.
If I split up the request into two requests asking for only band at a time I get the results I expect (and I see the requested region has data). To decrease the number of requests I would really like to ask for multiple bands with one call.