Skip to content

Problem with geostrophic winds on CONUS 404 #152

Answered by jthielen
lpilz asked this question in Q&A
Discussion options

You must be logged in to vote

The unfortunate thing here is that the important part of the error message is actually the initial UserWarning: More than one latitude coordinate present for variable "geopotential_height". If the extra latitude coordinate is removed, then everything should work as expected:

geo_wind_u, geo_wind_v = mpcalc.geostrophic_wind(z.drop_vars('CLAT'))

print(geo_wind_u)
<xarray.DataArray (Time: 1, z_stag: 51, y: 1015, x: 1367)>
<Quantity([[[[-0.00000000e+00 -0.00000000e+00 -0.00000000e+00 ... -0.00000000e+00
    -0.00000000e+00 -0.00000000e+00]
   [-0.00000000e+00 -0.00000000e+00 -0.00000000e+00 ... -0.00000000e+00
    -0.00000000e+00 -0.00000000e+00]
   [-0.00000000e+00 -0.00000000e+00 -0.000000…

Replies: 3 comments 6 replies

Comment options

lpilz
Dec 7, 2023
Maintainer Author

You must be logged in to vote
2 replies
@spacekace
Comment options

@lpilz
Comment options

lpilz Dec 7, 2023
Maintainer Author

Comment options

lpilz
Dec 7, 2023
Maintainer Author

You must be logged in to vote
1 reply
@spacekace
Comment options

Comment options

You must be logged in to vote
3 replies
@spacekace
Comment options

@jthielen
Comment options

@jthielen
Comment options

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
3 participants