How to use Copernicus Dataspace provider #2031
Unanswered
aleksandaratanasov
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @aleksandaratanasov , looking at your code there might be several things to try updating:
Remove quotes around username and password values. See configuration / yaml-user-configuration-file.
Check if file exists as there might be a typo in filename (eodag_conifg vs eodag_config ?)
search_results = dag.search(provider="cop_dataspace", productType="S2_MSI_L2A", **remaining_kwargs)
Note that Let us know if you manage to make it work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all.
I have a valid Copernicus Dataspace account that I have used numerous times (incl. when working with SNAP and the Sentinel toolbox). I used to use the
sentinelsatPython library but that one is now obsolete after the change in the API for accessing Copernicus data. I wrote some code using the ODATA examples and it works. However, for convenience and also due to the fact I would like to e.g. download some USGS Landsat data as well, I found EODAG.I installed
eodag[all]andeodag[all-providers]viapip.I have tried loading my credentials (username and password) through the following YAML file:
as well as using the environment variables directly in my script, e.g.
but both fail when the download step of a product is executed. This step obviously requires authentication unlike simply querying the available products. I keep getting the following traceback:
The
Missing credentials configuration for provider pepsexception is (without checking the code) probably the catch block if the selected provider (in my casecop_dataspace) fails during loading for some reason and to fall back to the default (as per documentation), namely PEPS.Further note that I am able to find a product for downloading so it's not like the search results is empty.
The code I am using is as follows (this version loads from a YAML config file):
Beta Was this translation helpful? Give feedback.
All reactions