Closed alaniwi closed 5 years ago
pyproj is already built and installed. import pyproj
works.
Found test code which uses the old incantation:
from mpl_toolkits.basemap import Basemap
from mpl_toolkits.basemap import pyproj
ulm = [-8895604.1573329996, 3335851.5589999999] #upper left, meters
lrm = [-7783653.6376670003, 2223901.0393329998] #lower right, meters
sinu = pyproj.Proj(proj='sinu', lon_0=0.0, x_0=0.0, y_0=0.0)
m = Basemap(projection='sinu', resolution=None, lon_0=0.0)
print "ULM: " + str(ulm)
print "Proj: " + str(sinu(ulm[0], ulm[1], inverse=True))
print "Basemap: " + str(m(ulm[0], ulm[1], inverse=True))
Running this on a system running the previous version of JAP and replacing the import with import pyproj
gives identical results. The same is obtained on a system with the latest JAP.
Will advise users to replace import mpl_toolkits.basemap.pyproj as pyproj
with import pyproj
in their code.
This happens:
In
python27-basemap-1.0.7-1.ceda.el6.x86_64
it is present:In
python27-basemap-1.1.0-1.ceda.el6.x86_64
it is not (above command gives no output).Seems it has been removed from basemap:
One of the commits is revealing:
There is https://pypi.org/project/pyproj/
Try building pyproj separately and adding to the JAP.