From: Jan Simon on
Dear Jane!

> Your method above worked thank you. I understand what it is doing too. I have a new problem.

If you've understood the effects of RESHAPE and PERMUTE, you have all you need to solve your new problem. Please try it.
For the beginning it is easier, if you test the method with smaller arrays. Then you can inspect the effetcs of the commands in the command line.

Kind regards, Jan