-
Notifications
You must be signed in to change notification settings - Fork 96
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
Convert byte_no_cf
and cf_nasa_4326
to Zarr
#321
Conversation
byte_no_cf
and cf_nasa_4326
to Zarr
CC @metasim this works on my computer, but will probably fail on others, depending on the GDAL version and configuration (I used ZSTD). |
I also tried HDF5 (NC 4), but crashes like crazy. I can put up another PR if you want to take a look. |
@lnicola I'll give it a run on my setup today. |
@lnicola I think I need a custom build of GDAL (hence your comment about ZSTD?)... Test results on macOS 21.6.0 arm64failures: Versions:
GDALVersionInfo { RELEASE_NAME: "3.5.1" RELEASE_DATE: "20220630" VERSION_NUM: "3050100" BUILD_INFO { OGR_ENABLED: "YES" PROJ_BUILD_VERSION: "9.0.1" GEOS_ENABLED: "YES" PAM_ENABLED: "YES" PROJ_RUNTIME_VERSION: "9.0.1" GEOS_VERSION: "3.11.0-CAPI-1.17.0" } } |
Yeah, it seems so. How did you install GDAL? |
edit: deleted config quote because it's misleading |
I suppose you could try to install zstd (and recompile gdal), but I'll replace these with DEFLATEd ones when I get to my computer. |
I'm fine rebuilding as we figure this out, but long term should figure out what the "standard" Linux install of GDAL is for most distros (e.g. rpm/dpkg/apt) is, and if it includes requisite libraries needed for this test. |
Got pulled off on other things, but started looking into possibilities of adding something to |
You could also check if gdalinfo works on those (needs vsizip). I'm not sure what you mean by standard install. The tests pass on CI (on supported GDAL versions), and if they don't pass locally, that's still not so bad. The distros I've tested (Arch and the official container) have zstd and also blosc (you need that too, btw). |
Actually, we can leave these uncompressed. It's only 50 kb or so. |
Can you pull and try again? |
Cool. I suppose we could ignore those tests on GDAL pre-3.4. |
Yeh, I was already heading down that route in a draft PR. |
I'll try it tomorrow. I'm inclined to conditionally |
Supersedes #320 |
bors r=metasim,jdroenner |
Build succeeded: |
CHANGES.md
if knowledge of this change could be valuable to users.Closes #239
I left
alldatatypes.nc
untouched because it's string arrays are not supported. Unfortunately, I had to disable these tests on pre-3.4 GDAL, where Zarr is not supported.