Replies: 6 comments 1 reply
-
Can you share some sample data somewhere so that someone else can reproduce this issue ? |
Beta Was this translation helpful? Give feedback.
-
please find the attached link for the sample data. data |
Beta Was this translation helpful? Give feedback.
-
This line looks wrong: planetary_vorticity_advection = mpcalc.advection(f[:,None,None,None], data.uReconstructZonal, data.uReconstructMeridional)
Try this, which only calculates the advection across latitudes: planetary_vorticity_advection = mpcalc.advection(f[..., :, None], v=data.uReconstructZonal) |
Beta Was this translation helpful? Give feedback.
-
I tried by the way as suggested:
But again I got an error:
|
Beta Was this translation helpful? Give feedback.
-
I am still getting this error:
|
Beta Was this translation helpful? Give feedback.
-
Since latitude is the third axis in this dataset, I think you want this: planetary_vorticity_advection = mpcalc.advection(f[None, None, :, None], v=data.uReconstructMeridional) I can't guarantee that the result of this computation is what is intended, but at least it doesn't crash. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to calculate the advection of planetary vorticity, but encountering an error. Can anyone say how to reslove this or hoe advection of planetary vorticity can be done. Below I am posting my code, along with the error.
And the error:
Beta Was this translation helpful? Give feedback.
All reactions