Skip to content

Commit

Permalink
Fix broken isentropic interpolation test with scalar theta level
Browse files Browse the repository at this point in the history
  • Loading branch information
jthielen committed Dec 23, 2019
1 parent c37aa9f commit 3c0eb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ def _isen_iter(iter_log_p, isentlevs_nd, ka, a, b, pok):
levs = pres[sorter]
tmpk = temperature[sorter]

theta_levels = np.asanyarray(theta_levels.to('kelvin')).reshape(-1)
theta_levels = np.asarray(theta_levels.m_as('kelvin')).reshape(-1)
isentlevels = theta_levels[np.argsort(theta_levels)]

# Make the desired isentropic levels the same shape as temperature
Expand Down

0 comments on commit 3c0eb47

Please sign in to comment.