Importing multidimensional Binarydata


#1

Hi,

having int16 Data from a BSQ (see http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/BSQ_file_format_example/009t00000013000000/) 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.


#2

Hi,
The AFL operator redimension() is designed for that purpose, please see paradigm4.com/HTMLmanual/14. … /re41.html