Context
As mentioned in this article, WEkEO offers the hda
Python package which utilizes the HDA API to facilitate data download. However, you may encounter some known errors (see HDA API errors).
In this article, we will focus on the case where the query was present in an old notebook or code you found somewhere and yields 0 result, for example the following query:
β οΈ In a nutshell, we highly recommend to use the Expert Data Viewer to build a query without mistakes.
Step by step Guide
Step 1. Get request from the Expert Data Viewer
When the query gets no results, the first thing to do is to recreate the request via the Expert Data Viewer.
For example, let's reproduce the previous query with:
datasetID:
EO:ESA:DAT:SENTINEL-3
product type:
OL_1_EFR___
Copy/paste the datasetID in the search bar
(1)
and click on Use dataset(2)
:
βClick on the download button
(1)
and define the download parameters(2)
:Finally, click on Show API request
(1)
and on Copy(2)
:
Step 2. Compare both requests
Here is the new request we generated from the Expert Data Viewer:
{
"dataset_id": "EO:ESA:DAT:SENTINEL-3",
"bbox": [
-1.9106783082394259,
41.694475995649526,
-0.2146243889164906,
42.99121100026714
],
"startDate": "2024-06-01T00:00:00.000Z",
"completionDate": "2024-06-07T00:00:00.000Z",
"productType": "OL_1_EFR___",
"instrument": "OLCI",
"itemsPerPage": 200,
"startIndex": 0
}
Despite the fact it's not the exact same query, the main differences in the structure of the query are due to the new version of the HDA, while the example query was written for use with the HDA V1.
Step 3. Run the query
Now you can copy/paste the last request into your notebook and run it:
Congrats!
With this method, you managed to download the data! π
What's next?
Additional resources can be found in our Help Center. Should you require further assistance or wish to provide feedback, feel free to contact us through a chat session available in the bottom right corner of the page.