Skip to content
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

Add compression to encoding #239

Open
dnowacki-usgs opened this issue Jun 18, 2024 · 1 comment
Open

Add compression to encoding #239

dnowacki-usgs opened this issue Jun 18, 2024 · 1 comment

Comments

@dnowacki-usgs
Copy link
Member

We can add lossless compression to the encoding dict so that the netCDF files are smaller. I think this makes sense to enable across the board...?

@dnowacki-usgs
Copy link
Member Author

Except that, according to the xarray docs:

Chunk based gzip compression can yield impressive space savings, especially for sparse data, but it comes with significant performance overhead. HDF5 libraries can only read complete chunks back into memory, and maximum decompression speed is in the range of 50-100 MB/s. Worse, HDF5’s compression and decompression currently cannot be parallelized with dask. For these reasons, we recommend trying discretization based compression (described above) first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant