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)DetailsDiff against developResults for commit: 5603dc1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Code Coverage (Windows)DetailsDiff against developResults 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") |
sbrunato
left a comment
There was a problem hiding this comment.
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.