现在我有一个 24*20 数组,如下所示:
In [748]: zb_mean
Out[748]:
array([[ nan, 20.68575654, 14.11937546, nan,
nan, nan, nan, nan,
nan, nan, nan, nan,
nan, nan, nan, nan,
nan, nan, nan, nan],
[ nan, nan, nan, nan,
nan, nan, nan, nan,
nan, nan, nan, nan,
... ... ...
... ... ...
In [749]: zb_mean.shape
Out[749]: (24, 20)
然后我根据纬度/经度创建一个网格,如下所示:
xi = np.arange(-66,-72,-0.25)
yi = np.arange(40.5,45.5,0.25)
In [755]: len(xi),len(yi)
Out[755]: (24, 20)
xxb,yyb = np.meshgrid(xi, yi)
现在网格和数组有相同的维度,我想在每个小网格的中心用数组(zb_mean)的对应值绘制这个网格(xxb,yyb),我该怎么办?非常感谢!