07-03-2017 04:23 AM
Hi all,
I have multiple 2D array data sets stacked in a 3D array. I want to know the maximum vale for each XY position accross all data sets.
Is there a easy way to do this?
To better explain myself, a simple example:
Data set 1 (page 1 in 3D array):
1 2 3
4 5 6
7 8 9
Data set 2 (page 2 in 3D array)
1 4 7
2 5 8
3 6 9
Data set 3 (page 3 in 3D array):
1 3 6
2 5 8
4 7 9
Wanted result (max values for each xy position):
1 4 7
4 5 8
7 8 9
FYI, the actual data exists out of much more rows, columns and pages.
Thanks in advance!
Solved! Go to Solution.
07-03-2017 05:06 AM
07-03-2017 05:17 AM
Thanks, this works great.
I also learned something new because I thought "Index Array" could only be used to get a single value.
07-03-2017 05:24 AM
07-03-2017 05:30 AM - edited 07-03-2017 05:31 AM
Here is a simpler version of Nico011's solution (using autoindexing for the output).
07-03-2017 07:03 AM - edited 07-03-2017 07:04 AM
This one looks indeed a lot easier!
Thank you for your improvement.