-
Notifications
You must be signed in to change notification settings - Fork 22
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
Retrieving fixed accuracy parameters from ZFP encoded HDF5 datasets #105
Comments
This is a very reasonable request, @leighorf. That information is encoded, withOUT loss, in the datasets creation I think its probably best to add a function to the library interface to H5Z-ZFP for this. It requires a combination of HDF5 and ZFP library calls. In lieu of such a function, given an existing dataset id of
|
@brtnfld and @leighorf I am about 1/2 way through having this completed. Maybe a little more than that. I just realized, however, I don't fully understand all the context(s) in which retrieving ZFP encoding params would be needed. Here are some of the ways I am thinking...
|
I would suggest essentially duplicating the current zfp API for querying these parameters. It's probably not a good idea for the Another possibility is to piggyback on the |
You mean for querying an already compressed dataset? I think if callers want to use ZFP library interface, then all we should provide is a means to obtain a Related to this, I just realized yesterday that H5Z-ZFP |
Well, yes, but more generally getting a
True, that might be a more general approach. I don't know if there are any cases where you manipulate a
I don't think there's much we can do about that now without breaking things. |
In this comment, were you basically speaking to how I proposed to handle the return values for error or n/a cases? If so, I agree. |
Right. The zfp library already has those same functions (with different names, of course), so it would make sense for H5Z-ZFP to just wrap those and use the same parameters and return values. |
@leighorf I finally have a prototype implementation for this on branch You can see an example of how it works for a dataset already written to a file here.. Lines 165 to 212 in 4ccd6aa
If the caller knows nothing, it must first query for mode and then based on that, query for remaining params. If you know mode, you can avoid having to query twice. It is an error to query for zfp parameters that do not match the mode. So, if mode is accuracy but precision is queried, that will generate an error. The caller is responsible for obtaining the desired dataset's creation property list id and passing that to The implementation will handle any case...the property list is using bonified HDF5 properties, the property list is using generic properties before the dataset has been every been written, the dataset has been written. |
@brtnfld I am just pinging you on this issue in case you wanted to have a look at the new functions I am working towards to retrieve ZFP compression parameters from a dataset's creation property list... Lines 135 to 382 in 5baa4b9
|
@markcmiller86 Just to make sure I understand how this is supposed to work, since the caller presumably does not already know what As an alternative, zfp 1.0.0 supports |
In addition to querying compression parameter settings through the library, it would be nice to have a command-line tool that decodes |
Hello,
I have gone through great pains to carry fixed accuracy parameter metadata with all of my conversions of data that use ZFP. I often operate on ZFP compressed data and compress the results, and I want to make sure my final accuracy parameters are OK given the original accuracy parameters.
However it occurs to me that at least for a saved ZFP encoded HDF5 dataset, it should be possible to open a HDF5 file with ZFP compressed data and retrieve the original floating point representation of the accuracy parameter for each dataset (I know it is possible to do this with the zfp library). It is not evident how to do this with the H5Z-ZFP interface, but that is what I desire: The ability to retrieve the ZFP fixed accuracy parameter of a H5Z-ZFP compressed HDF5 dataset.
The text was updated successfully, but these errors were encountered: