Skip to content
Python package for plotting tephigrams
Branch: master
Clone or download
leifdenby Prepare for release on pipy
Introduces breaking change so that package must be imported with
`tephigram` instead of `tephigram_python`
Latest commit 3b1f1ac Jul 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Update README with test parcel instructions Sep 25, 2017
tephigram Prepare for release on pipy Jul 9, 2018
tests Prepare for release on pipy Jul 9, 2018
.gitignore Fix setup.py Sep 25, 2017
.travis.yml Add settings for using Travis CI Sep 25, 2017
LICENSE
README.md Prepare for release on pipy Jul 9, 2018
requirements.txt Add settings for using Travis CI Sep 25, 2017
setup.py Prepare for release on pipy Jul 9, 2018

README.md

Python package for plotting tephigrams

Travis CI build status

Installation

pip install tephigram

Prerequisites

matplotlib and numpy.

Usage

from tephigram_python import Tephigram

tephigram = Tephigram()

sounding = np.loadtxt('sounding_example.dat', unpack=True)
P = sounding[0]
T = sounding[2]
T_dp = sounding[3]
RH = sounding[4]/100.

tephigram.plot_sounding(P=P, T=T, T_dp=T_dp)
tephigram.plot_legend()
parcel_info = tephigram.plot_test_parcel(z=z, P=P, T=T, RH=RH)

tephigram.savefig('tephigram_example.png')

parcel_info variable contains the test parcel's CAPE (Convectively Available Potential Energy) and CIN (Convective Inhibition energy) as well as the LCL (Lifting Condensation Level), LFC (Level of Free Convection) and EL

Tephigram example

Other useful methods of Tephigram include plot_temp and plot_RH. (Equilibrium Level).

See tests/ for more usage examples.

Sources of inspiration

You can’t perform that action at this time.