MetPy 0.7.0 has been released:
API Changes
- The default dimension ordering for functions in
kinematics
(i.e. whendim_order
is not passed) has changed from "xy" to "yx". This lets more data work out of the box with these functions, and has been warned since 0.5.1 - Renamed
h_convergence
andv_vorticity
todivergence
andvorticity
, respectively. These latter names are simpler and more accurate. The old names are still available for old code, but are deprecated and will be removed in 0.9. convergence_vorticity
andshearing_stretching_deformation
are deprecated, and will be removed in 0.9. These functions existed as performance optimizations, but new calculation internals renders them unnecessary.- The parameter
sblcl
forsignificant_tornado
has been renamed tosurface_based_lcl_height
to improve clarity. This only affects users who were passing by keyword argument. - Changed
relative_humidity_wet_psychrometric
,relative_humidity_from_mixing_ratio
, andrelative_humidity_from_specific_humidity
to return values as unitless ratios rather than percentages, for better symmetry with the rest of the library.
Highlights
- Added our own functions for
first_derivative
,second_derivative
,gradient
, andlaplacian
. These are 3 point finite difference calculations that handle irregularly spaced grid points. - Added function to calculate x,y grid spacing for latitude/longitude grids
- Added table of equivalencies between GEMPAK functions and Python. This is an on-going effort to provide a resource for migrating from GEMPAK.
- Added ability to
add_timestamp
to add outlined text - New calculations
- Thickness (using hypsometric formula)
- Geopotential to/from height
- Mixing ratio from relative humidity
- Moist static energy
- Dry static energy
Contributors
@akrherz, @dennissergeev, @eliteuser26, @jthielen, @leouieda, @lsterzinger, @shofer16450, @tjwixtrom, @WEP11, @jrleeman, and @dopplershift all contributed commits to this release.
For full release notes see the GitHub Release Page.
MetPy packages are available for Conda on the conda-forge channel and for pip from the Python Package Index.
Let us know if you run into any problems, either at MetPy issue tracker, or on the python-users list.