The best option would be to use the Catalogue functionality to get the relevant dates, see this example:
docs.sentinel-hub.com
Catalog API implements STAC Specification to describe geospatial information about Sentinel Hub data.
Alternate option is to use WFS set MAXCC=100, TIME parameter to e.g. 3 months (7 images is about 1.5 months, so 3 months should be more than sufficient) and MAXFEATURES=7.
sentinel-hub.com
The Sentinel Hub Web Feature Service conforms to the WFS standard. It provides access to the geometric (vector) metadata about the available data collection tiles. WFS is also only available via a user-preconfigured custom server instance URL.
After you have the relevant dates, you simply construct the WMTS requests setting the TIME parameter to the appropriate date, e.g. TIME=2020-11-16/2020-11-16.
@gmilcinski In case of WFS, is it possible to get relevant dates with better output format and automatically put it into WMTS request without user operation? I tried WFS way that you kindly advice me and get JSON file downloaded. If there are some ways that is not needed to open and read the downloaded file to find the relevant dates, that is so helpful.
My web application is very simple.
(1) click satellite view link
(2) show 7 most recent satellite images with 7 taken dates.
The API, as it is commonly so, returns one output. If you really wanted, you could configure our process API in a way to return a multi-part response, e.g. 7 images packed in the GZIP. But I do not think this would help you much.
For the use-case describe, you will have to implement this part on the web-application level. There is no need for user to do anything as the process can be automatic. It has to be implemented by you though, e.g. in JavaScript:
-you first trigger WFS to get dates
-then construct a web-site with appropriate image SRCs-es.
Is it possible to filter and display the images we have listed with the CATOLOG API as in sentinel-playground?
To give a concrete example, I am trying to make a web-service where I can display all the images of March for the specified corn field and apply NDVI index.
I can list dates with the catalog api or I can apply indexes like ndvi with the process api, but is it possible to call all images in the date range from the selectbox?
I would be glad if you could help,
Thanks!
Perhaps it would be esiest if you try to use Sentinel Playground directly, it is open source:
GitHub
Simple application for using Sentinel-2 WMS service - GitHub - sentinel-hub/SentinelPlayground: Simple application for using Sentinel-2 WMS service
The “select box” part has to be implemented by you as it is not part of the Sentinel Hub API (it is implemented in Sentinel Playground though). Once you select the “date”, you can then pass this parameter to the API and visualise NDVI on that specific date.
Thanks for your answer, but I’m trying to apply this process to thousands of agricultural fields. I can list the available dates with distinct(), my question is: how can I display the images in the given date interval separately.
Not sure I understand your question. You cannot have different dates within the same WMTS request. You will have to execute one request for every combination of AOI/date period.