Skip to content

Commit

Permalink
MNT: Move pyproj import
Browse files Browse the repository at this point in the history
Right now metpy.calc won't import without having pyproj installed, which
is a bit more of a pain in the but than I want for a hard dependency
right now.
  • Loading branch information
dopplershift committed May 11, 2018
1 parent 3acbfe1 commit f97ddf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metpy/calc/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import warnings

import numpy as np
from pyproj import Geod

from ..calc import coriolis_parameter
from ..calc.tools import first_derivative, get_layer_heights, gradient
Expand Down Expand Up @@ -698,6 +697,8 @@ def lat_lon_grid_deltas(longitude, latitude, **kwargs):
Assumes [Y, X] for 2D arrays
"""
from pyproj import Geod

# Inputs must be the same number of dimensions
if latitude.ndim != longitude.ndim:
raise ValueError('Latitude and longitude must have the same number of dimensions.')
Expand Down

0 comments on commit f97ddf5

Please sign in to comment.