-
Notifications
You must be signed in to change notification settings - Fork 72
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
ZarrIosp claims any zipped dataset #1319
Comments
@rschmunk feel free to add anything I missed here. I believe it's clear and should be straight forward to fix. |
@tdrwenski, I've been trying to look into this but keep getting sidetracked. I think it has something to do with the file or the archive somehow getting tagged as a directory but I haven't figured that bit out yet. |
@rschmunk, believe it's fixed now, but let us know if you still have issues! |
@tdrwenski, At first look, that seems to have done the trick. |
@tdrwenski, An FYI/warning/whatever in case this issue gets reported again: If for some reason the zip process decides to include filesystem metadata along with the compressed dataset, then there will be > 1 entry in the zip and netcdfAll will decide that zip archive must be a compressed zarr archive. I discovered this because I just tried to open a zipped netCDF file and was startled that my app, which is using a freshly built netcdfAll, reported it was a zipped zarr archive. I deleted the zip archive, re-zipped the NC file again at the command line, and tried again; this time my app successfully uncompressed and opened it as a netCDF file. Further testing revealed that if you are using a Mac and use the desktop control-click on a dataset icon, and select Compress in the contextual menu, the zip file that results will have 2 entries in it. In the case I just tested, the data file was named |
Thanks for that extra info @rschmunk, I was not aware of this. We may need a more robust fix for this issue then. I will reopen this issue so we don't forget, but not sure if we will get to it right away. |
@trdweski, What I encountered was enough of an edge case that I don't think there's a rush. I would expect most people zipping their datasets are going to do so from the command line or by script. |
On second thought, I think this is enough of an edge case that we don't need to handle it now. Users can delete those resource forks ( |
From issue: #1307:
When using netcdfAll with the optional cdm-zarr code included, any zipped dataset you try to open gets claimed by
ZarrIosp
as a validFile. The zip is apparently opened, but if it's not actually zarr, then it is reported as empty.The text was updated successfully, but these errors were encountered: