@@ -3551,7 +3551,7 @@ def contour(self,x,y,data,*args,**kwargs):
3551
3551
# with the shiftgrid function.
3552
3552
# only do this check for global projections.
3553
3553
if self .projection in _cylproj + _pseudocyl :
3554
- xx = x [x .shape [0 ]/ 2 ,:]
3554
+ xx = x [x .shape [0 ]// 2 ,:]
3555
3555
condition = (xx >= self .xmin ) & (xx <= self .xmax )
3556
3556
xl = xx .compress (condition ).tolist ()
3557
3557
xs = xl [:]
@@ -3653,7 +3653,7 @@ def contourf(self,x,y,data,*args,**kwargs):
3653
3653
# with the shiftgrid function.
3654
3654
# only do this check for global projections.
3655
3655
if self .projection in _cylproj + _pseudocyl :
3656
- xx = x [x .shape [0 ]/ 2 ,:]
3656
+ xx = x [x .shape [0 ]// 2 ,:]
3657
3657
condition = (xx >= self .xmin ) & (xx <= self .xmax )
3658
3658
xl = xx .compress (condition ).tolist ()
3659
3659
xs = xl [:]
@@ -3956,7 +3956,7 @@ def drawlsmask(self,land_color="0.8",ocean_color="w",lsmask=None,
3956
3956
if self .projection in _pseudocyl :
3957
3957
lons , lats = self (x , y , inverse = True )
3958
3958
lon_0 = self .projparams ['lon_0' ]
3959
- lats = lats [:,nx / 2 ]
3959
+ lats = lats [:,nx // 2 ]
3960
3960
lons1 = (lon_0 + 180. )* np .ones (lons .shape [0 ],np .float64 )
3961
3961
lons2 = (lon_0 - 180. )* np .ones (lons .shape [0 ],np .float64 )
3962
3962
xmax ,ytmp = self (lons1 ,lats )
@@ -4319,7 +4319,7 @@ def wmsimage(self,server,\
4319
4319
from xpixels and the aspect ratio of the
4320
4320
map projection region.
4321
4321
format desired image format (default 'png')
4322
- alpha The alpha blending value,
4322
+ alpha The alpha blending value,
4323
4323
between 0 (transparent) and 1 (opaque) (default None)
4324
4324
verbose if True, print WMS server info (default
4325
4325
False).
@@ -5198,7 +5198,7 @@ def _readlsmask(lakes=True,resolution='l',grid=5):
5198
5198
nlons = 17280
5199
5199
else :
5200
5200
raise ValueError ('grid for land/sea mask must be 10,5,2.5 or 1.25' )
5201
- nlats = nlons / 2
5201
+ nlats = nlons // 2
5202
5202
import gzip
5203
5203
lsmaskf = \
5204
5204
gzip .open (os .path .join (basemap_datadir ,'lsmask_%smin_%s.bin' % \
0 commit comments