On 1/30/11 6:59 PM, Peter Smale wrote: > Hi, > I am using Basemap 1.0 and matplotlib 1.0 on Ubuntu 10.10. I would like > to use the Hammer projection from the Basemap toolkit but when I use > > m = Basemap(resolution='c',projection='hammer',lon_0=180) > > I get an error (shown below). > > Does anyone know where the Hammer has gone? > > Thanks, > Peter
Peter: hammer was added after 1.0.0 was released - so you have to update from svn to get it. I am planning on releasing 1.0.1 soon (in the next week or so). -Jeff > > > Traceback (most recent call last): > File "md_sinPlot.py", line 37, in<module> > m = Basemap(resolution='c',projection='hammer',lon_0=180) > File > "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/basemap/__init__.py", > line 700, in __init__ > raise ValueError(_unsupported_projection % projection) > ValueError: 'hammer' is an unsupported projection. > The supported projections are: > aeqd Azimuthal Equidistant > poly Polyconic > gnom Gnomonic > moll Mollweide > tmerc Transverse Mercator > nplaea North-Polar Lambert Azimuthal > gall Gall Stereographic Cylindrical > mill Miller Cylindrical > merc Mercator > stere Stereographic > npstere North-Polar Stereographic > geos Geostationary > nsper Near-Sided Perspective > vandg van der Grinten > laea Lambert Azimuthal Equal Area > mbtfpq McBryde-Thomas Flat-Polar Quartic > sinu Sinusoidal > spstere South-Polar Stereographic > lcc Lambert Conformal > npaeqd North-Polar Azimuthal Equidistant > eqdc Equidistant Conic > cyl Cylindrical Equidistant > omerc Oblique Mercator > aea Albers Equal Area > spaeqd South-Polar Azimuthal Equidistant > ortho Orthographic > cass Cassini-Soldner > splaea South-Polar Lambert Azimuthal > robin Robinson > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users