Skip to content

Commit 41ece15

Browse files
committed
Merge branch 'master' into projecting_issue209
2 parents 8c4146e + 5a0f3bb commit 41ece15

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

doc/users/figures/geos_partial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# plot just upper right quadrant (corners determined from global map).
1212
# keywords llcrnrx,llcrnry,urcrnrx,urcrnry used to define the lower
1313
# left and upper right corners in map projection coordinates.
14-
# llcrnrlat,llcrnrlon,ucrnrlon,urcrnrlat could be used to define
14+
# llcrnrlat,llcrnrlon,urcrnrlon,urcrnrlat could be used to define
1515
# lat/lon values of corners - but this won't work in cases such as this
1616
# where one of the corners does not lie on the earth.
1717
m = Basemap(projection='geos',lon_0=lon_0,resolution='l',\

doc/users/figures/nsper_partial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# plot just upper right quadrant (corners determined from global map).
1515
# keywords llcrnrx,llcrnry,urcrnrx,urcrnry used to define the lower
1616
# left and upper right corners in map projection coordinates.
17-
# llcrnrlat,llcrnrlon,ucrnrlon,urcrnrlat could be used to define
17+
# llcrnrlat,llcrnrlon,urcrnrlon,urcrnrlat could be used to define
1818
# lat/lon values of corners - but this won't work in cases such as this
1919
# where one of the corners does not lie on the earth.
2020
m = Basemap(projection='nsper',satellite_height=h*1000.,\

doc/users/figures/ortho_partial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# plot just upper right quadrant (corners determined from global map).
1212
# keywords llcrnrx,llcrnry,urcrnrx,urcrnry used to define the lower
1313
# left and upper right corners in map projection coordinates.
14-
# llcrnrlat,llcrnrlon,ucrnrlon,urcrnrlat could be used to define
14+
# llcrnrlat,llcrnrlon,urcrnrlon,urcrnrlat could be used to define
1515
# lat/lon values of corners - but this won't work in cases such as this
1616
# where one of the corners does not lie on the earth.
1717
m = Basemap(projection='ortho',lon_0=lon_0,lat_0=lat_0,resolution='l',\

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from matplotlib.patches import Ellipse, Circle, Polygon, FancyArrowPatch
2828
from matplotlib.lines import Line2D
2929
from matplotlib.transforms import Bbox
30-
from mpl_toolkits.basemap import pyproj
30+
from . import pyproj
3131
from mpl_toolkits.axes_grid1 import make_axes_locatable
3232
from matplotlib.image import imread
3333
import sys, os, math
@@ -712,7 +712,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
712712
self.urcrnrlon = urcrnrlon; self.urcrnrlat = urcrnrlat
713713
else:
714714
if width is None or height is None:
715-
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,ucrnrlon,urcrnrlat) in degrees or width and height in meters')
715+
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat) in degrees or width and height in meters')
716716
if lon_0 is None or lat_0 is None:
717717
raise ValueError('must specify lon_0 and lat_0 when using width, height to specify projection region')
718718
llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = _choosecorners(width,height,**projparams)
@@ -725,7 +725,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
725725
raise ValueError('must specify lat_0 and lon_0 for Stereographic basemap (lat_ts is optional)')
726726
if not using_corners:
727727
if width is None or height is None:
728-
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,ucrnrlon,urcrnrlat) in degrees or width and height in meters')
728+
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat) in degrees or width and height in meters')
729729
if lon_0 is None or lat_0 is None:
730730
raise ValueError('must specify lon_0 and lat_0 when using width, height to specify projection region')
731731
llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = _choosecorners(width,height,**projparams)
@@ -762,7 +762,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
762762
raise ValueError('must specify lat_0 and lon_0 for Lambert Azimuthal basemap')
763763
if not using_corners:
764764
if width is None or height is None:
765-
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,ucrnrlon,urcrnrlat) in degrees or width and height in meters')
765+
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat) in degrees or width and height in meters')
766766
if lon_0 is None or lat_0 is None:
767767
raise ValueError('must specify lon_0 and lat_0 when using width, height to specify projection region')
768768
llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = _choosecorners(width,height,**projparams)
@@ -777,7 +777,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
777777
raise ValueError('must specify lat_0 and lon_0 for Transverse Mercator, Gnomonic, Cassini-Soldnerr and Polyconic basemap')
778778
if not using_corners:
779779
if width is None or height is None:
780-
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,ucrnrlon,urcrnrlat) in degrees or width and height in meters')
780+
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat) in degrees or width and height in meters')
781781
if lon_0 is None or lat_0 is None:
782782
raise ValueError('must specify lon_0 and lat_0 when using width, height to specify projection region')
783783
llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = _choosecorners(width,height,**projparams)
@@ -871,7 +871,7 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
871871
# raise ValueError, 'cannot specify map region with width and height keywords for this projection, please specify lat/lon values of corners'
872872
if not using_corners:
873873
if width is None or height is None:
874-
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,ucrnrlon,urcrnrlat) in degrees or width and height in meters')
874+
raise ValueError('must either specify lat/lon values of corners (llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat) in degrees or width and height in meters')
875875
if lon_0 is None or lat_0 is None:
876876
raise ValueError('must specify lon_0 and lat_0 when using width, height to specify projection region')
877877
llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = _choosecorners(width,height,**projparams)
@@ -4190,7 +4190,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
41904190
# to map projection coords.
41914191
# if masked=True, values outside of
41924192
# projection limb will be masked.
4193-
for k in range(3):
4193+
for k in range(self._bm_rgba.shape[2]):
41944194
self._bm_rgba_warped[:,:,k],x,y = \
41954195
self.transform_scalar(self._bm_rgba[:,:,k],\
41964196
self._bm_lons,self._bm_lats,nx,ny,returnxy=True)

lib/mpl_toolkits/basemap/proj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from mpl_toolkits.basemap import pyproj
2+
from . import pyproj
33
import math
44
from matplotlib.cbook import dedent
55

lib/mpl_toolkits/basemap/pyproj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
4848
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """
4949

50-
from mpl_toolkits.basemap import _proj
50+
from . import _proj
5151
__version__ = _proj.__version__
5252
set_datapath = _proj.set_datapath
5353
from array import array

0 commit comments

Comments
 (0)