You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large files reading the entire file into memory is not always economic.
To solve this, we could support opening sofa files without reading the data into memory using the enter method.
This is already supported by netcdf
withDataset(filename, "r", format="NETCDF4") asfile:
# read the data here
In addition we could use support netcdfs slicing support for arrays to improve this even further, i.e. for channel wise reading of data or reading only partial spherical harmonic orders, etc.
The text was updated successfully, but these errors were encountered:
It would generally work. A problem is that the names inside the SOFA files follow NetCDF convention and are different from the names of the attributes in the sofar.SOFA object. Hints to how it could be done may be found in the __getitem__ method of the NetCDF Python API. But it is more tricky than initially expected
For large files reading the entire file into memory is not always economic.
To solve this, we could support opening sofa files without reading the data into memory using the enter method.
This is already supported by netcdf
In addition we could use support netcdfs slicing support for arrays to improve this even further, i.e. for channel wise reading of data or reading only partial spherical harmonic orders, etc.
The text was updated successfully, but these errors were encountered: