Comments (8)
@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.
from netcdf-java.
@tdrwenski, At first look, that seems to have done the trick.
from netcdf-java.
@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.
from netcdf-java.
@rschmunk feel free to add anything I missed here. I believe it's clear and should be straight forward to fix.
from netcdf-java.
@rschmunk, believe it's fixed now, but let us know if you still have issues!
from netcdf-java.
@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 eccc2016.nc
and the desktop compression command was including a __MACOSX/._eccc2016.nc
metadata entry in the archive.
from netcdf-java.
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.
from netcdf-java.
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 (__MACOSX/
) files from their zips to work around it. We can always revisit it if more people are zipping their files this way.
from netcdf-java.
Related Issues (20)
- Exception when opening twoD grib collection as a coverage
- Missing GRIB-1 time range indicators HOT 6
- netcdfAll-5.5.3.jar Unable to release handle after reading file HOT 1
- Build failed due to `gretty:2.0.1` HOT 3
- Some NetCDF data cannot be read by `ucar.nc2.dataset.NetcdfDataset` HOT 7
- DOC: Oudated link to ncml XSD in NCML documentation HOT 1
- Unlimited dimension cannot work without a specified length HOT 3
- Lambert conformal projection does not respect units of the false northing/easting
- BUFR delayed replication descriptor HOT 4
- cdm-radial: Parsing issues with radar files from IDEAM Colombia HOT 4
- Contributors guide says to branch off of `develop`, which appears not to exist
- Grib2 reader issue for data using second order packing and a bitmap section HOT 2
- Problems opening Zipped datasets HOT 3
- Broken link on https://www.unidata.ucar.edu/blogs/news/entry/netcdf-java-version-5-51 webpage HOT 1
- Unpacked values from scaled/offset dataset are all NaN. HOT 6
- Fix order of Enhancements to use packed fillValues for comparisons to packed data HOT 1
- Configurable time units when using dateFormatMark
- Multithreaded access with both file cache and dataset cache fails HOT 5
- Filters scans service loader over and over HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcdf-java.