-
Notifications
You must be signed in to change notification settings - Fork 422
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
Fix for skewt subroutines ignoring x axis units #1216
base: main
Are you sure you want to change the base?
Conversation
This follows on from the closed unimplemented pull request #1168 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor things, but I think this is really close.
Let me look locally. Some of the other most recent builds don't show this, so I'm guessing something that's tweaked in this PR is causing it. |
Ok, so the error is caused by the fact that we're now doing a little bit of computing, so our this line: ref_pressure < pressure.max() ends up returning true, even though both are nominally 1000. Mind if I upload a commit to fix? |
Actually, on second thought I'll do a separate PR for that issue, since I'll need some tests for that. We can ignore the warning in your PR. |
You should be able to add the blank line and do:
|
As far as the other tests, I can take a look and see what’s going on. |
Thanks @dopplershift. |
@jibbals Apologies on this languishing for so long. I took the liberty of rebasing this on current Regarding the warnings from lsoda, I've figured them out completely, it's pretty dumb. Essentially: units.Quantity(1000., 'mbar') - units.Quantity(1000., 'hPa') gives |
Wet and dry adiabats, along with mixing lines, do not correctly plot unless everything is in degrees celcius. This is especially a problem when the plots show the wrong values without giving any sort of warning. This fix makes the subroutines plot onto units matching the xaxis or input temperature. Checklist Closes Unidata#1155 test added
Reset pmin to be 600 hPa instead of 60pct of max pressure Added test to hit edge case where user specifies kelvin t0
One fixes a unit error, another bring the spacing of moist adiabats back in line with what we had before, where it was 10 below freezing, and 5 above.
So with cf734e3 deciding default units for the xaxis, and underlying calculations (e.g. |
Wet and dry adiabats, along with mixing lines, do not correctly
plot unless everything is in degrees celcius. This is especially
a problem when the plots show the wrong values without giving
any sort of warning. This fix makes the subroutines plot onto
units matching the xaxis or input temperature.
Checklist
Closes #1155
test added
Description Of Changes
Checklist