Skip to content

File format for arbitrary array structs #6

@mmaelicke

Description

@mmaelicke

With #5 numpy arrays of 1D and 2D dims will be stored to .dat files. We then lack a standard format to store arrays of any shape, which can easily be opened in our Python, R and Matlab/Octave environments.

  1. .mat is obviously easy in Matlab, but require extra packages in Python and R. In addition, a .mat can store more than one matrix, but we want to limit this use-case to only one.
  2. We come up with our own txt/binary: a header storing the shape and then just a long list. This is extremely flexible, but needs custom implementation in all 3 environments
  3. VTK files should be usable in most environments and can define multi-dimensional mesh. We would have to check if that can be implemented in R and octave without too many dependencies.
  4. We use the good old netCDF. This has the advantage, that we could also set an attribute, describing that the .nc was written using toolbox-runner and any needed info to parse it in Matlab or R

@AlexDo1 what do you think? How should we implement nD-arrays?

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions