Plotting mixing ratio on a sounding #2100
Answered
by
dopplershift
singhvasu1626
asked this question in
Q&A
-
sir in the skew-T diagram i also want to plot the mixing ratio values from the radiosonde data set . how can I do so . please help!!! |
Beta Was this translation helpful? Give feedback.
Answered by
dopplershift
Sep 13, 2021
Replies: 1 comment
-
MetPy's import matplotlib.pyplot as plt
import metpy.calc as mpcalc
from metpy.plots import SkewT
sh = mpcalc.specific_humidity_from_mixing_ratio(mr)
dewp = mpcalc.dewpoint_from_specific_humidity(press, temp, sh)
fig = plt.figure()
skew = SkewT(fig)
# Plot temperature
skew.plot(press, temp)
# Plot moisture using the dewpoint calculated from mixing ratio
skew.plot(press, dewp) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dopplershift
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MetPy's
skewT
class always plots with temperatures. If all you have is mixing ratio, you have to convert to dewpoint first: