You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Metpy's interpolate_to_isosurface function, in my case to interpolate theta to a PV surface (of 2 PVU). In a column (an atmospheric column, not an array column) with all PV values less than 2 PVU or all values greater than 2 PVU, I'd expect to get a nan value. However, it returns the first value in the array; using the code below, it returns
[[200. 200.]
[200. 200.]]
Short of editing the code myself, is there a way to not set values outside the domain to the first/last value, e.g., through a flag/parameter?
I think this is trying to fill some values at the top and bottom of the interpolation, especially when the interpolation gets to the surface and above the tropopause where the requested level exceeds what’s in the data, so setting it to the max and min values.
It’s been a hot second though…don’t know how often this section of the code actually changes the values.
What went wrong?
I'm using Metpy's interpolate_to_isosurface function, in my case to interpolate theta to a PV surface (of 2 PVU). In a column (an atmospheric column, not an array column) with all PV values less than 2 PVU or all values greater than 2 PVU, I'd expect to get a nan value. However, it returns the first value in the array; using the code below, it returns
[[200. 200.]
[200. 200.]]
Short of editing the code myself, is there a way to not set values outside the domain to the first/last value, e.g., through a flag/parameter?
Operating System
Linux
Version
1.3.0
Python Version
3.8.5
Code to Reproduce
Errors, Traceback, and Logs
No response
The text was updated successfully, but these errors were encountered: