I would like to apply a Gaussian filter to a masked array, however, this appears to alter the shape of my image. The higher I put sigma, the more of the image disappears. I don't really understand why this happens? I would expect both figures to have the same shape.
## Filtering with a Gaussian
x = np.log10(np.abs(PV))
# PV is a (50,2041) array and represents potential vorticity
# along a latitudinal transect in the ocean
from scipy.ndimage import gaussian_filter
y = gaussian_filter(x, 3)
Original and Gaussian filtered transect: