Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolator assumes ordering of height levels #158

Closed
grantbuster opened this issue Jul 27, 2023 · 0 comments · Fixed by #155
Closed

Interpolator assumes ordering of height levels #158

grantbuster opened this issue Jul 27, 2023 · 0 comments · Fixed by #155

Comments

@grantbuster
Copy link
Member

Interpolator for vertical wind assumes index=0 is the min elevation but this isn't always true (e.g. ERA has index=-1 as min elevation). Raises lots of warnings. I don't think this is actually a bug because the actual interp function should work with either sorting, but warnings are scary.

bad_max = max(levels) > lev_array[:, -1, :, :]

[interp1d(h[mask], var[mask], fill_value='extrapolate')(levels)

@bnb32 bnb32 linked a pull request Jul 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant