Jun-10-2022, 05:26 AM
My wind speed map does not match the quiver location
https://ibb.co/JyB48kV
What I understand from the imshow result is that the map is generated from the top so because my lats list started with negative value it instead generated the value that should be at the bottom at the top instead. But why does the quiver is not affected by this?
lats = nc.variables['latitude'][:] lons = nc.variables['longitude'][:] U=Data.eastward_wind[0] V=Data.northward_wind[0] plt.figure(constrained_layout=True) plt.imshow(wspeed_var[0, 0, :, :], extent=[min(lons), max(lons), min(lats), max(lats)]) plt.quiver(lons[::2], lats[::2], U[::2, ::2], V[::2, ::2]) plt.ylabel('latitude') plt.title('Global Wind Speed for for ' + datelabel.strftime('%Y-%b-%d %H:%M'))The result I get is this:
https://ibb.co/JyB48kV
What I understand from the imshow result is that the map is generated from the top so because my lats list started with negative value it instead generated the value that should be at the bottom at the top instead. But why does the quiver is not affected by this?