I have a fits image of specified dimensions, in pixels, and I wish to slice off one pixel off the top and one on the bottom. I have attempted to use:
sliced_array = my_array[1:-1,1:0]
However, this gives me, when I query the shape of the newly sliced array using print(sliced_array.shape):
(4070, 0)
How would this be achieved?
N.B. I'm working within Python, and the numpy and astropy modules.