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

HDF5 #13

Open
thorade opened this issue Nov 15, 2016 · 6 comments
Open

HDF5 #13

thorade opened this issue Nov 15, 2016 · 6 comments

Comments

@thorade
Copy link
Contributor

thorade commented Nov 15, 2016

The releases page mentions HDF5, but it is not listed in the ReadMe, main features section.
https://github.com/tbeu/ExternData/releases
https://en.wikipedia.org/wiki/Hierarchical_Data_Format
Is this work in progress? Or part of .mat support?

@tbeu
Copy link
Contributor

tbeu commented Nov 15, 2016

It currently is only as part of support for v7.3 MAT-files. No plain HDF5.

@tbeu
Copy link
Contributor

tbeu commented Nov 21, 2016

v7.3 MAT-file actually is HDF5 with custom 128 bytes header and some defined attributes. You can use the standard HDF5 tools to work on v7.3 MAT-files.

@thorade
Copy link
Contributor Author

thorade commented Nov 21, 2016

I would be interested in the other way around, loading any standard HDF5 file content into Modelica, that is why I asked. Thanks for answering the question, I think this issue can be closed.

@tbeu
Copy link
Contributor

tbeu commented Mar 31, 2017

Question is, what you mean by "standard HDF5 file content". HDF5 is like XML, that is you define the data and datagroup layout. If you use netCDF or v7.3 MAT (or also MTSF) files, they have done it for you.

@bilderbuchi
Copy link

bilderbuchi commented Apr 14, 2023

Question is, what you mean by "standard HDF5 file content". HDF5 is like XML, that is you define the data and datagroup layout. If you use netCDF or v7.3 MAT (or also MTSF) files, they have done it for you.

I (not the OP) would mean to be able to point to a Dataset (inside a Group or not) in an HDF5 file with the appropriate dimensions and datatype and use that just like a Dataset from a .mat file.
E.g. in the lingo of Examples.Mattest, say timeTable(table=dataSource.getRealArray2D("group1/subgroup1/mytable", 3, 2))

That would make it easy to use this package (that effectively understands HDF5 already) to work with ~generic HDF5 (or even netCDF4?) files (e.g. from data acquisition hardware), if you don't have Matlab available.

@beutlich
Copy link
Contributor

OK, that seems like a nice addition.

@beutlich beutlich reopened this Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants