Thanks for your help.
It works fine for values after 2023-02-16
The following does not work:
curl -X POST https://services.sentinel-hub.com/api/v1/statistics
-H ‘Authorization: ’
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{
“input”: {
“bounds”: {
“geometry”: {
“type”: “Polygon”,
“coordinates”: [
[
[
-71.12956613992135,
-30.54124653873209,
0
],
[
-71.12903580854392,
-30.54142336657128,
0
],
[
-71.12877644174317,
-30.54159512502724,
0
],
[
-71.12831701462689,
-30.54185531817823,
0
],
[
-71.12778893055922,
-30.54201501898092,
0
],
[
-71.12768571168564,
-30.54196984226339,
0
],
[
-71.12762729395618,
-30.54173061364225,
0
],
[
-71.12744821903584,
-30.54161123446446,
0
],
[
-71.12718784189667,
-30.5415139607362,
0
],
[
-71.12688707635104,
-30.54141507035204,
0
],
[
-71.12642288081382,
-30.54093101336366,
0
],
[
-71.12616823834097,
-30.54087681987756,
0
],
[
-71.12555169582988,
-30.54049356519861,
0
],
[
-71.12667301426947,
-30.53946408774166,
0
],
[
-71.1270907030892,
-30.5397607824904,
0
],
[
-71.12740403483876,
-30.53952001029431,
0
],
[
-71.12808778199211,
-30.54030797409049,
0
],
[
-71.12876326094117,
-30.54064591245121,
0
],
[
-71.13002482749255,
-30.54105561457819,
0
],
[
-71.12956613992135,
-30.54124653873209,
0
]
]
]
}
},
“data”: [
{
“dataFilter”: {},
“type”: “byoc-xxxxxxxxx”
}
]
},
“aggregation”: {
“timeRange”: {
“from”: “2023-01-01T00:00:00Z”,
“to”: “2023-01-31T23:59:59Z”
},
“aggregationInterval”: {
“of”: “P1D”
},
“width”: 512,
“height”: 339.01,
“evalscript”: “//VERSION=3\nfunction setup() {\n return {\n input: [{\n bands: [\n "Red",\n "NIR",\n "dataMask"\n ]\n }],\n output: [\n {\n id: "data",\n bands: 2\n },\n \n {\n id: "dataMask",\n bands: 1\n }]\n };\n}\n\nfunction evaluatePixel(samples) {\n let index = (samples.NIR - samples.Red) / (samples.NIR+samples.Red);\n return {\n data: [index, samples.NIR, samples.Red],\n dataMask: [samples.dataMask]\n };\n}”
},
“calculations”: {
“default”: {}
}
}’