Commit 6b9859c1 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Merge branch 'dev'

parents 7c5a5da6 dbfce0dd
Pipeline #492 failed with stages
in 1 minute and 1 second
......@@ -1043,7 +1043,13 @@ class GeoArray(object):
:return:
"""
from mpl_toolkits.basemap import Basemap
try:
from mpl_toolkits.basemap import Basemap
except ImportError:
warnings.warn(
'This function requires Basemap. You need to install basemap manually (see www./matplotlib.org/basemap) '
'if you want to plot maps. It is not automatically installed.')
raise
try:
import mpld3
if zoomable:
......@@ -1121,7 +1127,13 @@ class GeoArray(object):
def show_map_utm(self, xlim=None, ylim=None, band=0, figsize=None, interpolation='none', cmap=None,
nodataVal=None, vmin=None, vmax=None, res_factor=None, return_map=False):
from mpl_toolkits.basemap import Basemap
try:
from mpl_toolkits.basemap import Basemap
except ImportError:
warnings.warn(
'This function requires Basemap. You need to install basemap manually (see www./matplotlib.org/basemap) '
'if you want to plot maps. It is not automatically installed.')
raise
warnings.warn(UserWarning('This function is still under construction and may not work as expected!'))
# TODO debug this function
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment