Importing multidimensional Binarydata



having int16 Data from a BSQ (see and want to import those into an array. Importing them as a 1d array is not an problem, but the only attribute is the value itself. But of course i would like the arrays scheme to represent the characteristics of the data, which means there are 3 dimensions: bands, x-coordinaten and y-coordinate.

I found, that i could slice those data and rearange them into a new array with the structure i give it. But is there no easier, more native solution? Something like just reading the binary directly into a 3d array or a way to turn the 1d array into 3d one?

Thanks for your help.


The AFL operator redimension() is designed for that purpose, please see … /re41.html