Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 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 have an Xarray dataset with the contents of an atmospheric model in hybrid-sigma coordinates. The dataset consists of several model variables that are available on a regular latitude-longitude grid, in this case specified on 65 hybrid-sigma model levels.
So, each model variable has as dimensions the hybrid-sigma model level number and latitude and longitude. Consider, for example the temperature field:
For each latitude-longitude grid point, I have computed the altitude from the Earth's surface for each hybrid model level number (following ECMWF's wiki) and have stored that as variable 'z'.
As the hybrid coordinate system is terrain-following, this 3D 'z' variable therefore represents an irregular grid. The irregular altitude grid changes with each lat, lon position. Now, I want to re-interpolate the dataset variables to a regular altitude-grid, making use of the 'z' variable that contains the irregular altitudes. I suppose it involves the
interp()
function, but I cannot see how I can link the model levels (that the hybrid dimension point too) to the values stored in variable 'z'.Looking forward to your suggestions.
Best,
Jelle
Beta Was this translation helpful? Give feedback.
All reactions