MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.
Python Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.circleci MNT: Clean up CircleCI build May 17, 2018
.github ENH: Add an issue template Apr 6, 2018
ci ENH: Add javacript to dynamically populate version chooser Oct 2, 2017
docs MNT: Update some redirecting links Aug 17, 2018
examples Respell doc page names for clarity. Aug 17, 2018
metpy Add gempak_color() and related tests (#916) Aug 21, 2018
staticdata Add xarray tutorial Jul 2, 2018
talks MNT: Remove unnecessary use of keys(). Mar 20, 2018
tutorials Respell doc page names for clarity. Aug 17, 2018
.appveyor.yml Add API doc module override, and use it with metpy.calc Jul 24, 2018
.codeclimate.yml MNT: Bump up complexity threshold for CodeClimate May 14, 2018
.codecov.yml MNT: Update codecov config May 14, 2018
.coveragerc ENH: Include tests as part of the coverage. Dec 9, 2016
.gitattributes MNT: Flag talks directory as docs for linguist Sep 27, 2017
.gitignore Add AMS talk (#745) Feb 21, 2018
.landscape.yml Upper air tutorial Feb 1, 2017
.lgtm.yml MNT: Add a configuration for LGTM May 11, 2018
.mailmap MNT: Update AUTHORS May 17, 2018
.stickler.yml MNT: Add config for StickerCI Sep 5, 2017
.travis.yml Bump minimum xarray to v0.10.7, numpy to v1.11.0 Jul 24, 2018
AUTHORS.txt MNT: Update AUTHORS May 17, 2018
CITATION.txt ENH: Add information for citing MetPy in publications Mar 31, 2017 MNT: Update CLA Sep 21, 2017 Create Dec 18, 2017 Update development installation instructions. Apr 26, 2018
LICENSE MNT: Tweak license text and update year Feb 26, 2018 MNT: Update package manifest Apr 3, 2017
README Add stuff for putting packages on PyPI. Apr 22, 2015
README.rst Drop 3.4 from the .travis.yml matrix,, and README Jun 14, 2018 ENH: Add Stack Overflow information (Fixes #782) Mar 22, 2018 MNT: Update matplotlib import in conftest Jan 2, 2018
environment.yml MNT: Remove pinning netcdf4 May 16, 2018
setup.cfg Move interpolation functionality in calc to interpolate Jun 21, 2018 MNT: List matplotlib >= 2.2 in requirements for examples (Fixes #867) Aug 17, 2018 MNT: Bump to versioneer 0.17 Oct 26, 2016



License Gitter PRs Welcome

Latest Docs PyPI Package Conda Package

Travis Build Status AppVeyor Build Status Code Coverage Status

Codacy issues Code Climate Scrutinizer Code Quality

MetPy is a collection of tools in Python for reading, visualizing and performing calculations with weather data.

MetPy follows semantic versioning in its version number. With our current 0.x version, that implies that MetPy's APIs (application programming interfaces) are still evolving (we won't break things just for fun, but many things are still changing as we work through design issues). Also, for a version 0.x.y, we change x when we release new features, and y when we make a release with only bug fixes.

We support Python >= 3.5 and currently support Python 2.7.

NOTE: We are dropping support for Python 2.7 in Fall 2019. See here for more information.

Need Help?

Need help using MetPy? Found an issue? Have a feature request? Checkout our support page .

Important Links


Other required packages:

  • Numpy
  • Scipy
  • Matplotlib
  • Pint

Python 2.7 requires the enum34 package, which is a backport of the standard library enum module.

There is also an optional dependency on the pyproj library for geographic projections (used with CDM interface).

Code of Conduct

We want everyone to feel welcome to contribute to MetPy and participate in discussions. In that spirit please have a look at our code of conduct.


Imposter syndrome disclaimer: We want your help. No, really.

There may be a little voice inside your head that is telling you that you're not ready to be an open source contributor; that your skills aren't nearly good enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at all, you can contribute code to open source. Contributing to open source projects is a fantastic way to advance one's coding skills. Writing perfect code isn't the measure of a good developer (that would disqualify all of us!); it's trying to create something, making mistakes, and learning from those mistakes. That's how we all improve, and we are happy to help others learn.

Being an open source contributor doesn't just mean writing code, either. You can help out by writing documentation, tests, or even giving feedback about the project (and yes - that includes giving feedback about the contribution process). Some of these contributions may be the most valuable to the project as a whole, because you're coming to the project with fresh eyes, so you can see the errors and assumptions that seasoned contributors have glossed over.

For more information, please read the see the contributing guide.


The space MetPy aims for is GEMPAK (and maybe NCL)-like functionality, in a way that plugs easily into the existing scientific Python ecosystem (numpy, scipy, matplotlib). So, if you take the average GEMPAK script for a weather map, you need to:

  • read data
  • calculate a derived field
  • show on a map/skew-T

One of the benefits hoped to achieve over GEMPAK is to make it easier to use these routines for any meteorological Python application; this means making it easy to pull out the LCL calculation and just use that, or re-use the Skew-T with your own data code. MetPy also prides itself on being well-documented and well-tested, so that on-going maintenance is easily manageable.

The intended audience is that of GEMPAK: researchers, educators, and any one wanting to script up weather analysis. It doesn't even have to be scripting; all python meteorology tools are hoped to be able to benefit from MetPy. Conversely, it's hoped to be the meteorological equivalent of the audience of scipy/scikit-learn/skimage.