-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issue with some zipped vector data #607
Comments
@malmans2, thank you for reporting this issue. When I try to run it with: earthkit-data develop I get the following error for both versions:
|
Are you sure you are running the exact same snippet I sent you? Maybe you have a bug in your code and you are iterating over a string rather than an iterable of strings? |
I am sorry, you were right I used a wrong request. Now I am able to reproduce the error. |
@malmans2, earthkit-data cannot read the retrieved shapefile for the "rgi_7_0" version because it cannot identify it as a valid shape file. A shapefile consists of multiple files, and in earthkit-data 3 of these are expected to be present with the following suffixes:
If we look at the content of the downloaded data after extracted into a directory we see this:
Here the filename I can see 2 possible solutions to this:
|
Got it, thanks for the details. I will inform the EQC evaluator and the CDS technical officer. |
What happened?
We are having issues opening some zipped vector data.
In the snippet below,
earthkit.data
works fine withversion="rgi_6_0"
, but it raises an error withversion="rgi_7_0"
.What are the steps to reproduce the bug?
Version
0.12.1
Platform (OS and architecture)
Darwin MacBook-Pro-di-Bopen.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:24 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6030 arm64
Relevant log output
Unknown file type, no reader available. path=/var/folders/z4/9f32__x92kl340wxp0m4hfym0000gp/T/tmp4_wsms_8/cds-023bde4eed526ccb72379966cbf08d5cfebea278f82f2143efc49ec801b34338.d/rgi2000_v70_vector.shp magic=b"\x00\x00'\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00$\xceo\xa4\xe8\x03\x00\x00\x0f\x00\x00\x00#h\xcc$\xea}f\xc0;\x1c]\xa5\xbb\x93S\xc0\x96A\xb5\xc1\txf@\x96\xcc\xb1\xbc" content_type=None
Accompanying data
No response
Organisation
B-Open/EQC
The text was updated successfully, but these errors were encountered: