-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Correct vertical coordinate assumption (Fixes #3315)
isentropic_interpolation_as_dataset was blindly assuming that the vertical coordinate was pressure, resulting in a confusing unit error when calling isentropic_interpolation. Check the dimensionality and raise a clearer ValueError when this is not the case. Also allow users to manually pass (as a keyword) an appropriate pressure array to use instead.
- Loading branch information
1 parent
a3f7c9b
commit 64270d3
Showing
2 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters