Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date filters on cop_cds and custom dataset #1491

Open
sbrunato opened this issue Jan 24, 2025 · 0 comments
Open

date filters on cop_cds and custom dataset #1491

sbrunato opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@sbrunato
Copy link
Collaborator

When running

from eodag import EODataAccessGateway, setup_logging

setup_logging(3)
dag = EODataAccessGateway()

search_criteria = {
    'productType': 'reanalysis-era5-single-levels-monthly-means',
    'start': '2022-01-01',
    'end': '2022-12-31',
}
products = dag.search_all(provider="cop_cds", **search_criteria)
path = dag.download(products[0], outputs_prefix='.')

We can see in logs that dates are not sent in the request:

2025-01-24 20:24:06,588 eodag.download.http [DEBUG ] POST https://cds.climate.copernicus.eu/api/retrieve/v1/processes/reanalysis-era5-single-levels-monthly-means/execution {'User-Agent': 'eodag/3.1.0b2.dev13+g2dbab735'} {'json': {'inputs': {}}}

Which causes an Error from the provider.

Related to #1489

@sbrunato sbrunato added the bug Something isn't working label Jan 24, 2025
@sbrunato sbrunato changed the title date filters on cop_cds date filters on cop_cds and custom dataset Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant