Replies: 1 comment 3 replies
-
Welcome to xarray! For 1. Did you try using For 2. When you do that For 3. Is there there an issue? :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am discovering the power of
xarray
but I am still unsure if I can do what I want.From a GRIB file, I am reading wind profile for the whole globe at different isobaric & for a 24-hour period.
I have therefore the following:
My application being aeronautics, I want to compute u, v through interpolation at any given (t, alt, lat, lon) in a subset of the original data.
I know that I can do
uwind = ds.u.interp(time=t, isobaricInHPa=i, latitude=lat, longitude=lon)
But I wanted to try to optimize space and time so I decided to explore the following steps:
I faced newbie's issues in all my steps :-)
I tried this
uwind4 = uwind.where(uwind.latitude.isin([90, 89.75])).where(uwind_.longitude.isin([359.5, 359.8]))
which turned out to give me the same dataset size full of nan while I was expecting a smaller one. So I am really wondering if that is possible.I tried the following
which works well but
altitude
is not an index apparently so I cannotsel
using it. Did I miss something there ?Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions