Skip to content
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

Merged
merged 8 commits into from Apr 4, 2017
Merged

Conversation

jrleeman
Copy link
Contributor

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.

Copy link
Member

@dopplershift dopplershift left a 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.

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
Copy link
Member

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.

@dopplershift dopplershift added this to the 0.5.0 milestone Mar 31, 2017
@dopplershift dopplershift added Area: Plots Pertains to producing plots Type: Enhancement Enhancement to existing functionality labels Mar 31, 2017
@jrleeman
Copy link
Contributor Author

jrleeman commented Apr 3, 2017

Have tests written, #378 needs to merge first before they'll run.

@jrleeman jrleeman force-pushed the SkewT_Shade_Area branch 6 times, most recently from 16e69e2 to f7deebf Compare April 3, 2017 20:22
@dopplershift
Copy link
Member

Last error is because "tab:red" doesn't exist on matplotlib 1.4. I'll push a couple commits to fix in just a sec...

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.
Copy link
Contributor Author

@jrleeman jrleeman left a 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 :) 👍

@dopplershift
Copy link
Member

One more to threshold better on 1.4. Lack of tab:red, etc. also broke 1.5, but no specific tests there...

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.
@dopplershift
Copy link
Member

Well, since codecov just refuses to update here, but the status looks good on the site, I'm merging.

@dopplershift dopplershift merged commit e9c5bc2 into Unidata:master Apr 4, 2017
@jrleeman jrleeman deleted the SkewT_Shade_Area branch April 4, 2017 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Plots Pertains to producing plots Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants