[SciPy-User] Can I get the "rings" of a 2D array?

Jeremy Conlin jlconlin@gmail....
Mon Apr 12 17:55:31 CDT 2010


I need to get the "rings" of a 2D array; i.e. the first ring would be
the first and last column in addition to the first and last row, the
second ring would be the second and second-from-last row and the
second and second-from-last column---except for what is not in the
first ring.  Is there a way to slice an array to get this data?

Thanks,
Jeremy


More information about the SciPy-User mailing list