McStasMcXtrace / iFit

a simple library to analyze data (with McCode and Phonons/DFT hooks). :warning: this project has been moved to https://gitlab.com/soleil-data-treatment/soleil-software-projects/remote-desktop
http://ifit.mccode.org
Other
5 stars 5 forks source link

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

Open farhi opened 5 years ago

farhi commented 5 years ago

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:

One needs to know the exact path to data sets.

This could be done in:

farhi commented 4 years ago

See also:

farhi commented 4 years ago

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

farhi commented 4 years ago

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)..