08-13-2005 09:57 PM
08-13-2005 10:41 PM
Hi aperf,
There are many Array tools, among them "Reshape Array". Assuming you haven't found it already, it will easily slice your 1D array into an n*n (2D) array. Note the Transpose and Decimate functions as well.
08-13-2005 10:58 PM
08-13-2005 11:21 PM
08-13-2005 11:32 PM
Hi again aperf,
On re-reading your post, I wonder if you really want to reshape a 2D array into a 3D array (again using Reshape Array.)
I don't understand how your data is organized. If you want to examine "squares" cut out of a 2D plane, perhaps its the "Array Subset" tool you need. Array Subset will work with arrays of any dimension.
Cheers.
08-13-2005 11:35 PM - edited 08-13-2005 11:35 PM
"Reshape" is probably not the right tool here, since you probably want an arbitrary subset.
Use "array subset" anchored at the desired 2D index to get a 16x16 subarray (for example).
Now you still need to reshape it to a 1D array because the "Mean|standard_deviation|variance" tool from the statistics palete only accepts 1D arrays.
See image. Your big 2D array enters from the left.
You should be able to e.g. incorporate this inside two FOR loops to generate all possible 16x16 subarrays.
Message Edited by altenbach on 08-13-2005 09:39 PM
08-14-2005 05:28 AM