版本1.9.5.1
具体报错如下
TypeError Traceback (most recent call last)
Cell In[5], line 5
3 image = meb.add_barbs(axs[0],wind850,color = "k",skip = 5)
4 image = meb.add_streamplot(axs[1],wind850,color = "k")
----> 5 image = meb.add_meteor(axs[2],wind850,skip = 10,meteor_width = 2,cmap = "rainbow")
6 ani = meb.add_animation(axs[3],wind850,skip = 10,meteor_width = 2,cmap = "rainbow")
8 # 使用 PillowWriter 保存为 GIF
File /opt/conda/lib/python3.11/site-packages/meteva/base/tool/plot_tools_adv.py:581, in add_meteor(ax, grd_wind, skip, meteor_length, meteor_width, cmap)
579 #积分出轨迹
580 for i in range(L):
--> 581 sta_uv = meteva.base.interp_gs_linear(grd_wind,station)
583 station.iloc[:,4] += sta_uv.iloc[:,6] * meteor_length * 0.01
584 station.iloc[:, 5] += sta_uv.iloc[:, 7] * meteor_length * 0.01
File /opt/conda/lib/python3.11/site-packages/meteva/base/fun/interpolating.py:113, in interp_gs_linear(grd, sta, used_coords, reset_lon_range)
110 def interp_gs_linear(grd,sta,used_coords = "xy",reset_lon_range = True):
112 if reset_lon_range:
--> 113 grd = reset_lon_range(grd,sta)
114 grd = reset_global_griddata(grd)
116 #print("**0")
TypeError: 'bool' object is not callable
版本1.9.5.1
具体报错如下
TypeError Traceback (most recent call last)
Cell In[5], line 5
3 image = meb.add_barbs(axs[0],wind850,color = "k",skip = 5)
4 image = meb.add_streamplot(axs[1],wind850,color = "k")
----> 5 image = meb.add_meteor(axs[2],wind850,skip = 10,meteor_width = 2,cmap = "rainbow")
6 ani = meb.add_animation(axs[3],wind850,skip = 10,meteor_width = 2,cmap = "rainbow")
8 # 使用 PillowWriter 保存为 GIF
File /opt/conda/lib/python3.11/site-packages/meteva/base/tool/plot_tools_adv.py:581, in add_meteor(ax, grd_wind, skip, meteor_length, meteor_width, cmap)
579 #积分出轨迹
580 for i in range(L):
--> 581 sta_uv = meteva.base.interp_gs_linear(grd_wind,station)
583 station.iloc[:,4] += sta_uv.iloc[:,6] * meteor_length * 0.01
584 station.iloc[:, 5] += sta_uv.iloc[:, 7] * meteor_length * 0.01
File /opt/conda/lib/python3.11/site-packages/meteva/base/fun/interpolating.py:113, in interp_gs_linear(grd, sta, used_coords, reset_lon_range)
110 def interp_gs_linear(grd,sta,used_coords = "xy",reset_lon_range = True):
112 if reset_lon_range:
--> 113 grd = reset_lon_range(grd,sta)
114 grd = reset_global_griddata(grd)
116 #print("**0")
TypeError: 'bool' object is not callable