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

Reading complex-valued arrays from HDF5 files. #335

Closed
willGraham01 opened this issue Jun 5, 2023 · 1 comment · Fixed by #343
Closed

Reading complex-valued arrays from HDF5 files. #335

willGraham01 opened this issue Jun 5, 2023 · 1 comment · Fixed by #343
Labels
enhancement New feature or request

Comments

@willGraham01
Copy link
Collaborator

Pertains to #70 and #285.

There is no support within HDF5 for a complex number datatype. The norm for both MATLAB and h5py seems to be to create a custom H5COMPOUND datatype that encodes the real and imaginary parts separately, and to save the data in this format.

This means we need to adapt to this when reading our input file, for example when reading in the DTilde array. By the looks of things, when handling a .mat input we will need to define a compound datatype that can handle the format below:
image

IE a compound datatype that has a real and imag member.

@willGraham01 willGraham01 added the enhancement New feature or request label Jun 5, 2023
@samcunliffe samcunliffe linked a pull request Jun 13, 2023 that will close this issue
@samcunliffe
Copy link
Member

Solved with #343.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants