-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projecting LLC2160 Sea Ice Quiver onto Cartopy Northern Stereonet #323
Comments
Hi @LizzWebb! The LLC grid topology is rotated on some faces, so that "uice" doesn't necessarily point eastward nor "vice" northward. The arctic face is the most complicated of them all actually, since each grid cell is slightly rotated based on it's location. For plotting, I would recommend first applying these rotations, which are available via the "CS" and "SN" (cosine and sine) grid information and should be in the coordinates of the dataset, and then interpolating to cell center (rather than plotting what's on the grid cell edges). I'd recommend using the ecco_v4_py package. You'd specifically want the code in this function. Something like the following should hopefully get you started from xmitgcm import llcreader
import ecco_v4_py
ds = model.get_dataset(...)
uice, vice = ecco_v4_py.vector_calc.UEVNfromUXVY(ds.SIuice, ds.SIvice, coords=ds.coords)
# ... etc etc
plt.quiver(x, y, uice.values.ravel(), vice.values.ravel(), ...) I hope that helps! The documentation for the ecco_v4_py package is here although it doesn't necessarily compactly document what you would like to do... |
Hi All,
I am having troubles plotting the quiver of sea-ice velocity on the northern stereonet cartopy projection. I've tried it using fake/made up data, and it seems to work just fine (hence why I don't think it is an issue with cartopy). When I plot the the LLC2160 output, arrows point towards the north pole. We should instead expect a circular motion/rotation close to the Eastern Siberian sea, as well as ice moving towards/through the Fram strait.
Has anyone had this issue before or have any suggestions?
Thanks in advance, my code is below!
The text was updated successfully, but these errors were encountered: