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

Loaders: read_hdf5: use hdf5prop (HDF memmapfile) #193

Open
farhi opened this issue Mar 18, 2019 · 3 comments
Open

Loaders: read_hdf5: use hdf5prop (HDF memmapfile) #193

farhi opened this issue Mar 18, 2019 · 3 comments

Comments

@farhi
Copy link
Contributor

farhi commented Mar 18, 2019

The hdf5prop at:

allows to create a handle into an HDF5 file, without actually loading it. This means one can handle very large data sets, larger than memory, and only get selected portions directly from file.

Installation requires first to get:

and then this hdf5prop (which overloads an updated h5datacreate)

Example:

  • a=hdf5prop('/home/farhi/dev/iFit/Data/153265_153282.hdf','entry1/data1/DATA')

One needs to know the exact path to data sets.

This could be done in:

  • read_hdf5: line 91: val = H5D.read to val = hdf5prop(filename, ...)
  • read_hdf5: line 75: h5read(...)
@farhi
Copy link
Contributor Author

farhi commented Apr 29, 2020

See also:

@farhi
Copy link
Contributor Author

farhi commented May 7, 2020

See also #201, which can constitute a more generic way to handle in-memory compressed data.

@farhi
Copy link
Contributor Author

farhi commented May 7, 2020

For HDF in iData/estruct, one could indeed replace full data set read by a call to h5 routines with given subsref indices in initial file.
So probably one needs to create an object with its subsref/subsasgn method, and the file handle.
Probably NetCDF could also be supported, but probably outdated these days (and this is an HDF now)..

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

No branches or pull requests

1 participant