说x(len = 10,000)和y(len = 10,000)是一维numpy数组,分别用x和y UTM坐标填充。还说v(len = 10,000)也是一个1d numpy数组,用温度值填充。如果我想对v数据进行插值以从scipy griddata函数创建一个contourf贴图,那么应该给以下代码中的N变量分配正确的数字是什么?
import matplotlib.pyplot as plt
import numpy as np
import scipy.interpolate
x = ...1d numpy array with len = 10,000
y = ...1d numpy array with len = 10,000
v = ...1d numpy array with len = 10,000
N = ???
xi = np.linspace(x.min(), x.max(), N)
yi = np.linspace(y.min(), y.max(), N)
zi = scipy.interpolate.griddata((x, y), v, (xi[None,:], yi[:,None]))
plt.contourf(xi, yi, zi, cmap = "jet")
plt.show()