Changed map_coordinates inputs to get fix problem

The horizontal interpolation through map_coordinates with mode='nearest' gave weird corner behavior, but setting mode='constant' with cval=np.nan is helping somewhat at least.