-
Notifications
You must be signed in to change notification settings - Fork 44
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
search: add new plugin CopDataSpaceSearch
#1231
base: develop
Are you sure you want to change the base?
search: add new plugin CopDataSpaceSearch
#1231
Conversation
Test Results 2 files - 2 2 suites - 2 2m 23s ⏱️ - 3m 40s For more details on these failures and errors, see this check. Results for commit 05edac0. ± Comparison against base commit 03306fa. ♻️ This comment has been updated with latest results. |
Code Coverage (Ubuntu)
Diff against develop
Results for commit: 5603dc1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Code Coverage (Windows)
Diff against develop
Results for commit: 5603dc1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
TODO:
The following code reproduces the error: from shapely.geometry import Polygon
import eodag
from eodag.api.product import EOProduct
eodag.setup_logging(3)
dag = eodag.EODataAccessGateway()
provider = "cop_dataspace"
default_search_criteria = {
"productType": "S2_MSI_L1C",
"max_cloud_cover": 1,
"geom": Polygon([(20.888443, 52.169721), (21.124649, 52.169721), (21.124649, 52.271099), (20.888443, 52.271099), (20.888443, 52.169721)]),
"start": "2023-06-01T00:00:00.000Z",
"end": "2023-06-10T00:00:00.000Z",
}
print("##### Search")
products_first_page = dag.search(
provider=provider,
raise_errors=True,
**default_search_criteria,
)
print("##### Download")
if products_first_page:
print(products_first_page[0])
item: EOProduct = products_first_page[0]
# item.download() # this works
asset_key = next(iter(item.assets))
item.assets[asset_key].download()
else:
print("No result") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of creating a new plugin, please add a configurable option to odata plugin to list assets/nodes or not
The new plugin fetches the download URL of all the bands available for the product and add them as assets.