-
Hi, I have downloaded model-level data and want to convert it to pressure level by myself. Here's the example:
I got this error:
It seems I have to extend the 1D pressure data to the same 3D data. Is there a more efficient way? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
dcherian
Dec 4, 2022
Replies: 1 comment 2 replies
-
You need |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
zxdawn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need
vectorize=True
with numpy'sinterp
. See https://tutorial.xarray.dev/advanced/apply_ufunc/vectorize_1d.html