How to acquire data from sentinel-2-l1c through endpoint creodias.sentinel-hub.com/api

referring to the docs, here for the satellite sentinel-2-l1c, it should has global coverage since since November 2015 when the endpoint creodias.sentinel-hub.com/api/ is used.
As shown in the code below, the timeRange specified is within the allowed limit, but the request can not be executed or evaluated in the requestBuilder

please let me know how to solve this issue and what is wrong

request:

-d '{
  "input": {
	"bounds": {
	  "geometry": {
		"type": "Polygon",
		"coordinates": [
		  [
			[
			  1028794.347961078,
			  6791104.778010868
			],
			[
			  1109511.8498302242,
			  6537945.340330363
			],
			[
			  1292960.717714647,
			  6802111.710083933
			],
			[
			  1076491.053611028,
			  6813118.642156998
			],
			[
			  1028794.347961078,
			  6791104.778010868
			]
		  ]
		]
	  },
	  "properties": {
		"crs": "http://www.opengis.net/def/crs/EPSG/0/3857"
	  }
	},
	"data": [
	  {
		"dataFilter": {
		  "timeRange": {
			"from": "2015-11-01T00:00:00Z",
			"to": "2015-11-22T23:59:59Z"
		  }
		},
		"type": "sentinel-2-l1c"
	  }
	]
  },
  "output": {
	"width": 512,
	"height": 524.509,
	"responses": [
	  {
		"identifier": "default",
		"format": {
		  "type": "image/tiff"
		} 
	  }
	]
  },
  "evalscript": "function setup() { return { input: ['B02', 'B03', 'B04'],output: { bands: 3 }};} function evaluatePixel(sample) {return [sample.B04, sample.B03, sample.B02];}"
}'

Hi @burkhard.golla ,

The error message is Your request of 328.30 meters per pixel exceeds the limit 200.00 meters per pixel of the collection S2L1C. Please revise the resolution (or corresponding width/height) to make sure it is in supported range., meaning that you are requesting at a resolution exceeding the lowest limit. If you modify the height and width of your request to 1024.431 and 1000, you’ll be able to get the image.

1-would you please send me where in the docs is indicated that the max resolution of S2L1C is 200
2-in your answer, you said that the upper limit is 200, and later you asked me to specifiy width and height equals to 1024 and 1000?how come is that please, because i tested it in the requestBuilder, and the request was not evaluated or executed due to an error.

update
for point 2 mentioned above, it gets executed when i set the width and height to 1000 and 1000.215 respectively…but i can not find that in the docs. would you please point out where are such info stated in the docs?

sorry for the lack of understanding

Hi @burkhard.golla ,

  1. This is related to the previewMode setting. By default Sentinel Hub reads the data from original file and allows users to request spatial resolutions from original full resolution (high resolution) to at most 200 m per pixel (low resolution). If lower resolution is required (higher than 200 m per pixel), you need to set to TILE_PREVIEW, PREVIEW, or EXTENDED_PREVIEW. In this case Sentinel Hub does not read the original file anymore; instead, it reads the low resolution file generated from the original file. This is applied for performance purpose.
  2. It is the upper limit of meters per pixel, that is to say, the lowest resolution you can get. When the error message complains that your request of 328.30 meters per pixel exceeds the limit 200.00 meters per pixel, it means the resolution you are requesting is too low and you should increase the resolution. By increasing the size of requested image, the resolution is increased when the area of interest is the same.

When using the Processing API, there are two limitation regarding the image size and image resolution:

  • The upper limit of requested image size is 2500*2500 pixels.
  • The lower limit of requested image resolution is related to the setting of previewMode, which can be different from one data collection to another.

referring to the link you posted in the latter response to my question, in DETAIL (default) section, it mentions the following:

This option can be used when requesting spatial resolutions from original full resolution to at most 200m per pixel

is the 200m per pixel is the highest or the lowest resolution please?

update
to my understanding, 200m per pixel is the lowest resolution, which means, it could be higher, hence, a resolution of 100m pixel will be valid, am i right please?

Hi @burkhard.golla ,

Yes, you are right.

thanks,
since you confirmed that i am right, how come that when the width and height equals to 100 x 100 respectively is not a valid width and height for S2L1C? would you please clarify?

The height and width are the image size not the pixel size.

sorry, but how did you know that, for example, 1000 x 1000 is a valid width and height for S2L1C?how to deduce the image size given the resolution please

You can also specify resolution as resx and resy if you want. Please have a look at the API reference. Note that the unit of resx and resy is the same as the unit of the coordinate reference systems used in your input AOI.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.