-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
import numpy as np
import matplotlib.pyplot as plt
import cordex as cx
u = np.array([1., 0., -1.])
v = np.array([-1., 1., 0])
lon = np.array([0., 0., 0.])
lat = np.array([0., 0., 0.])
pollon = 90.
pollat = 45.
u1, v1 = cx.derotate_vector(u, v, lon, lat, pollon, pollat)
V = np.array([[1,1], [-2,2], [4,-7]])
origin = np.array([[0, 0, 0],[0, 0, 0]]) # origin point
plt.quiver(*origin, u, v, color=['r','b','g'], scale=5)
plt.quiver(*origin, u1, v1, color=['r','b','g'], scale=5)
plt.show()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels