Skip to content

Commit

Permalink
Update tutorial and examples for new shade_cin call
Browse files Browse the repository at this point in the history
  • Loading branch information
zbruick committed Sep 3, 2019
1 parent f49ba7c commit fd0887f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/Advanced_Sounding.py
Expand Up @@ -77,7 +77,7 @@
skew.plot(p, prof, 'k', linewidth=2)

# Shade areas of CAPE and CIN
skew.shade_cin(p, T, prof)
skew.shade_cin(p, T, Td, prof)
skew.shade_cape(p, T, prof)

# An example of a slanted line at constant T -- in this case the 0
Expand Down
4 changes: 2 additions & 2 deletions metpy/plots/skewt.py
Expand Up @@ -625,7 +625,7 @@ def shade_area(self, y, x1, x2=0, which='both', **kwargs):
return self.ax.fill_betweenx(*arrs, **fill_args)

def shade_cape(self, p, t, t_parcel, **kwargs):
r"""Shade areas of convective available potential energy (CAPE).
r"""Shade areas of Convective Available Potential Energy (CAPE).
Shades areas where the parcel is warmer than the environment (areas of positive
buoyancy.
Expand Down Expand Up @@ -654,7 +654,7 @@ def shade_cape(self, p, t, t_parcel, **kwargs):
return self.shade_area(p, t_parcel, t, which='positive', **kwargs)

def shade_cin(self, p, t, dewpoint, t_parcel, limit_shading=True, **kwargs):
r"""Shade areas of convective inhibition (CIN).
r"""Shade areas of Convective INhibition (CIN).
Shades areas where the parcel is cooler than the environment (areas of negative
buoyancy. Has option to not shade negative area below the lifting condensation level
Expand Down
4 changes: 2 additions & 2 deletions tutorials/upperair_soundings.py
Expand Up @@ -143,7 +143,7 @@
skew.plot(p, parcel_prof, 'k', linewidth=2)

# Shade areas of CAPE and CIN
skew.shade_cin(p, T, parcel_prof)
skew.shade_cin(p, T, Td, parcel_prof)
skew.shade_cape(p, T, parcel_prof)

# Plot a zero degree isotherm
Expand Down Expand Up @@ -186,7 +186,7 @@
skew.plot(p, parcel_prof, 'k', linewidth=2)

# Shade areas of CAPE and CIN
skew.shade_cin(p, T, parcel_prof)
skew.shade_cin(p, T, Td, parcel_prof)
skew.shade_cape(p, T, parcel_prof)

# Plot a zero degree isotherm
Expand Down

0 comments on commit fd0887f

Please sign in to comment.