Hi,
We have started testing PlanetScope, but we are unable to retrieve NDVI data for the selected area.
In My Collections, we created a Collection with ID, and we added a Subscription to it. The PlanetScope data was successfully loaded—we can see and download it via the web application.
However, when we try to generate NDVI using the API endpoint https://services.sentinel-hub.com/api/v1/process
, we do not receive any data. The endpoint returns null
.
Request:
{
"input":{
"bounds":{
"properties":{
"crs":"https://www.opengis.net/def/crs/OGC/1.3/CRS84"
},
"bbox":"
13.895467093481912,
49.978376989130496,
13.905815440973406,
49.982298215337835
]
},
"data":"
{
"type":"byoc-<collectionId>",
"dataFilter":{
"timeRange":{
"from":"2025-03-09T00:00:00+01:00",
"to":"2025-03-09T23:59:59+01:00"
}
}
}
]
},
"output":{
"resx":2.6949458523585642e-5,
"resy":2.6949458523585642e-5,
"responses":"
{
"identifier":"default",
"format":{
"type":"image/tiff"
}
}
]
},
"evalscript":"//VERSION=3\nfunction setup() {\n return {\n input: :\"nir\", \"red\", \"dataMask\"],\n output: {\n\t bands: 1,\n sampleType: \"FLOAT32\"\n\t},\n };\n}\n\nfunction evaluatePixel(sample) {\n if (sample.dataMask == 0) {\n return n NaN ];\n }\n return n(sample.nir - sample.red) / (sample.nir + sample.red)];\n}\n"
}
In the web application, we noticed that the data is in UTM, so we also tried modifying the request and querying in UTM, but the result was still null
.
We would really appreciate your advice and assistance.