Closed andy-d-palmer closed 8 years ago
+1
Added one more commit to the branch to adjust the rest of ImzMLParser and the examples in the README to the third dimension always being present. I hope there is no code out there relying on two dimensions
If imzml file has x,y,z coordinates then shape(imzml.coordinates) = [num spectra, 3], if just x,y then shape(imzml.coordinates) = [num spectra, 3].
This is annoying to work with programatically as I keep having to check for the presence of a z dimension.
I propose to always return x,y,z coordinates, and set z to 0 if not specific in the file