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

Compression of data #448

Open
JoeStoneAT opened this issue Aug 27, 2024 · 0 comments
Open

Compression of data #448

JoeStoneAT opened this issue Aug 27, 2024 · 0 comments

Comments

@JoeStoneAT
Copy link

Hi,
what are the possibilities to use compression with HDF5-CSharp?
In the code I found something at ChunkedCompound.

By adding in ChunkedDataset.cs :: public void FirstDataset(Array dataset) the following I got it working for Chunked Datasets

            /* Modify dataset creation properties, i.e. enable chunking  */
            propId = H5P.create(H5P.DATASET_CREATE);
            status = H5P.set_chunk(propId, Rank, chunkDims);
            H5P.set_deflate(propId, 6);

            /* Create a new dataset within the file using chunk creation properties.  */
            datasetId = Hdf5Utils.GetDatasetId(GroupId, Hdf5Utils.NormalizedName(Datasetname), datatype, spaceId, propId);

@LiorBanai, could you enable such a feature for ChunkedDataset? Best would be a possibility to switch compression on/off

Is compression also possible with simple continuous Datasets - which I have most of the time? This would remove the zipping of the h5 files after creation.
I'm not sure if I understand the HDF5 docu correctly.

BR Josef

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