Closed malmans2 closed 4 months ago
The CDS source does not work with zipped vector data.
I think something is not right in the way earthkit handles this product. I just tried, and geopandas is able to read the downloaded file: geopandas.read_file("rgi6_vector.zip").
geopandas.read_file("rgi6_vector.zip")
import earthkit.data collection_id = "insitu-glaciers-extent" request = { "variable": "glacier_area", "format": "zip", "version": "6_0", "product_type": "vector", } ds = earthkit.data.from_source("cds", collection_id, request) assert not isinstance(ds, earthkit.data.sources.empty.EmptySource)
0.5.1
Darwin MacBook-Pro-3.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 x86_64
No response
B-Open / CADS-EQC
Thanks for reporting this issue. I can confirm that earthkit-data is not yet able to read either zipped or unzipped shape file data.
earthkit-data
shape file
What happened?
The CDS source does not work with zipped vector data.
I think something is not right in the way earthkit handles this product. I just tried, and geopandas is able to read the downloaded file:
geopandas.read_file("rgi6_vector.zip")
.What are the steps to reproduce the bug?
Version
0.5.1
Platform (OS and architecture)
Darwin MacBook-Pro-3.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 x86_64
Relevant log output
No response
Accompanying data
No response
Organisation
B-Open / CADS-EQC