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
Shade area on SkewT #382
Shade area on SkewT #382
Conversation
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.
Just need to update the docstring.
metpy/plots/skewt.py
Outdated
def shade_area(self, y, x1, x2=0, which='both', **kwargs): | ||
r"""Shades areas of CAPE. | ||
|
||
Shades areas where the parcel is warmer than the environment (areas of positive |
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.
Need to update the docstring--I don't think you ever went back after copy/pasting:
- Not just CAPE.
- No documentation of
which
, mention p,T,T_parcel which aren't actually parameters.
8fc58fa
to
f3c92ee
Compare
Have tests written, #378 needs to merge first before they'll run. |
16e69e2
to
f7deebf
Compare
f7deebf
to
b2cf23b
Compare
b2cf23b
to
856f79a
Compare
Last error is because |
Since these are good to have for our defaults now, need to backport them until we're ready to only depend upon matplotlib >= 2.0.
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.
Cool - didn't know how to do that :) 👍
One more to threshold better on 1.4. Lack of |
fe56268
to
1e47457
Compare
These pass fine on 1.5 without it, so I'm just going to blame 1.4 cruftiness.
Might as well turn it on since we're running the tests anyways. This should help with some coverage numbers.
Well, since codecov just refuses to update here, but the status looks good on the site, I'm merging. |
A shader that works with masked arrays and provides nice defaults for CAPE and CIN shading. I added the convenience methods just because it's nice to have the names in there. So far I decided to stick with the dictionary of defaults. Open to change.