Can we try to simplify the calculation function when interpolation is not required? #2715
Replies: 1 comment 1 reply
-
I'd be supportive of a Pull Request that refactors some calculations to support this. In my mind, what we want is a function, say maybe called
I don't think this is important from a bug standpoint, as I wouldn't say The benefit of the refactor is it is much more performant (avoids significant calculation to do the interpolation), and in the cases where we're using it in sounding indices, the interpolation is unnecessary since they're mandatory levels that 99% of data I've encountered has. |
Beta Was this translation helpful? Give feedback.
-
interpolate_1d often requires iteration or other complex forms, and brings many bugs. Why not remove this function when I have the required pressure layers and corresponding other physical quantities? I refactored the function and removed this part when using it. Maybe the interface can be set in the official source code to simplify the calculation.
Beta Was this translation helpful? Give feedback.
All reactions