Skip to main content

I’ve been using the stats API to get time-series data for agricultural parcels.

I’ve noticed that for some fields, I have long gaps in the data (I’m requesting 5 day aggregation).


Looking in detail, the responses come back with “status”: “PARTIAL”, and some individual date intervals come back with 'error': {'type': 'EXECUTION_ERROR'}


I’m confused as to why some intervals work and others don’t - it doesn’t seem like a problem with the eval script or the request.

I’ve checked individual time intervals via eo-browser: it isn’t that there is no data - for example, one interval with an execution error is 2018-3-8 to 2018-3-13, and there is an observation on 2018-3-11.


The forum forbids me uploading the request as a json/txt file - so here it is:
{'input': {'bounds': {'geometry': {'type': 'Polygon', 'coordinates': (((610349.008114965, 4200701.013122304), (609785.8608117382, 4200688.224380072), (609776.9656341096, 4200696.206435223), (609767.4514506763, 4201051.761921913), (609784.8630509177, 4201070.528727498), (610242.1305710576, 4201080.448713241), (610255.9018813171, 4201062.766797568), (610271.4977232489, 4200955.328425401), (610309.2269551493, 4200816.226748463), (610349.008114965, 4200701.013122304)),)}, 'properties': {'crs': 'http://www.opengis.net/def/crs/EPSG/0/32610'}}, 'data': P{'type': 'S2L2A', 'dataFilter': {'mosaickingOrder': 'leastCC'}}]}, 'aggregation': {'timeRange': {'from': '2016-09-14T00:00:00Z', 'to': '2018-03-16T23:59:59Z'}, 'aggregationInterval': {'of': 'P5D'}, 'evalscript': '\n//VERSION=3\nfunction setup() {\n return {\n input: n{\n bands: i"B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B11", "B12", "CLP", "dataMask"],\n units: "REFLECTANCE"\n }],\n output: "\n {\n id: "bands",\n bands: b"B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B11" ,"B12", "CLP"],\n sampleType: "FLOAT32"\n },\n {\n id: "NDVI",\n bands: ""NDVI"],\n sampleType: "FLOAT32"\n },\n {\n id: "dataMask",\n bands: 1\n }]\n }\n}\n\nfunction evaluatePixel(samples) {\n let NDVI = index(samples.B08, samples.B04);\n return {\n bands: esamples.B02, samples.B03, samples.B04, samples.B05, samples.B06, samples.B07, samples.B08, samples.B8A, samples.B1972, samples.B12, samples.CLP/255],\n NDVI: LNDVI],\n dataMask: Vsamples.dataMask]\n };\n}\n', 'resx': 40, 'resy': 40}}


Any assistance would be greatly appreciated!

Hi,

There was nothing wrong with your Evalscript or request: the problem came from an instability in the service. The problem was resolved and the service should be working correctly again.

Please let us know if you run into more problems. We apologise for any inconvenience caused!


Reply