On Wed, Nov 17, 2010 at 8:44 AM, Benjamin Root <ben.r...@ou.edu> wrote:
> On Wed, Nov 17, 2010 at 5:45 AM, Matthias Plum <p...@physik.rwth-aachen.de > > wrote: > >> Hi >> >> I am trying to plot data on the sphere and use the hammer projection. >> The data ploting works fine, but the angular grid isn't shown correctly. >> In the attached picture you can see the error(mouse pointer is on the >> position 60 E 30 S). Can anyone help me on this subject? Thanks. >> >> Matthias >> >> > Matthias, > > Looking at the transform equation for Hammer, it looks like there might be > a mistake in the calculation. Can you include the script you used to make > that figure so I can test the fix? > > Thanks, > Ben Root > > Nevermind about the example script, I tested it myself and verified the problem. The fix was simple. We were missing a square root for the denominator of the formula for x and y. Before I submit this patch, can anybody with more knowledge about the hammer projection verify that the equations on the wikipedia page are correct? I would like to verify the transformation before making this change. Ben Root
hammer.patch
Description: Binary data
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users