18 Mar 2013 18 Mar '13
Chris Barker - NOAA Federal <chris.barker <at> noaa.gov> writes:
check out "stride tricks" for clever things you can do.
But numpy does require that the data in your array be a contiguous block, in order, so you can't arbitrarily re-arrange it while keeping a view.
Hi Chris, Thanks for the reply, you've just saved me a lot of time. I did run across 'views' but it looked like I couldn't have my data arbitrarily arranged. Thank you for confirming that. Unfortunately my desired view does not fit a neat striding pattern. Cheers, Matt