Skip to content
Discussion options

You must be logged in to vote

The problem is that at the point where you call wind_speed(ds.U, ds.V), the U and V arrays are not destaggered yet. Your second call to wind_speed(ds.U.xwrf.destagger(), ds.V.xwrf.destagger()) (please note the xwrf instead of wrf) should work.

Also, compare with https://xwrf.readthedocs.io/en/stable/tutorials/xgcm.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lpilz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #200 on December 13, 2024 13:28.