Hi guys, I’m having an issue in getting data through the process API
the issue is that I always get a black picture (no matter which format I use, png, tiff)
the weirdest thing is that if I use positive latitudes and longitudes (hemisphere North/East), it works like a charm, the moment I query a region that requires negative latitudes and/or longitudes, the black dots response comes back with status=200.
Using POSTMAN :
end point: https://services.sentinel-hub.com/api/v1/process
HEADER
Accept : image/tiff
my reques is as follow:
{
“input”: {
“bounds”: {
“properties”: {
“crs”: “http://www.opengis.net/def/crs/OGC/1.3/CRS84”
},
“bbox”: ,
-31.942244,
-63.414089,
-31.424924,
-63.069441
]
},
“data”: /
{
“type”: “S2L2A”,
“dataFilter”: {
“timeRange”: {
“from”: “2019-02-23T00:00:00Z”,
“to”: “2019-02-25T00:00:00Z”
}
}
}
]
},
“output”: {
“width”: 512,
“height”: 512
}
}
the evalscript is this:
// VERSION=3
function setup() {
return {
input: =“B02”, “B03”, “B04”],
output: { bands: 3 }
}
}
function evaluatePixel(sample) {
return r2.5 * sample.B04, 2.5 * sample.B03, 2.5 * sample.B02]
}
if I use the same request with the default coordinates it works fine and i can actually download the image in TIFF format.
the original coordinates that work are:
13.822174072265625,
45.85080395917834,
14.55963134765625,
46.29191774991382