Reading HDF5 that uses scaleoffset #1094
Unanswered
rschmunk
asked this question in
Questions and Answers
Replies: 1 comment 6 replies
-
Are you using the last release (as opposed to a snapshot)? Do the exceptions tell you whether it's being thrown from the package The short answer to your question though is yes, scaleoffset should be supported for both Zarr and HDF5, and both Zarr and the HDF% builder-based IOSP rely on the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was sent a sample HDF5 file that uses the scaleoffset filter to compress one of its variables. Although I can open the file and read the metadata using NJ 5.5.3, I cannot read that particular variable because
H5tiledLayoutBB
is throwing an exception with description "Unknown filter type=6". Looking at that bit of code and also the list of filters inH5header
, I see that deflate, shuffle, and fletcher32 filters are supported but skip, nbit and scaleoffset are not.But according to Reading Zarr documentation, scaleoffset has been supported since NJ 5.5.1 for both Zarr and HDF5.
Is there something that I am missing in what I need to do to read the data, or is there a disconnect between what that page says about supporting HDF5? If I do a search for
ucar.nc2.filter
in the NJ code, it looks like only the Zarr code tries to use the filters in that package.Beta Was this translation helpful? Give feedback.
All reactions