I want to interpolate data (120*120) in order to get output data (1200*1200).
In this way I'm using scipy.interpolate.interp2d.
Below is my input data, where 255 corresponds to fill values, I mask these values before the interpolation.
I'm using the code below:
tck = interp2d(np.linspace(0, 1200, data.shape[1]),
np.linspace(0, 1200, data.shape[0]),
data,
fill_value=255)
data = tck(range(1200), range(1200))
data = np.ma.MaskedArray(data, data == 255)
I get the following result:
Fill values have been interpolated.
How can I interpolate my data without interpolate fill values ?