<div class="gmail_quote">On Mon, Jun 16, 2008 at 8:46 AM, Graeme Rae <<a href="mailto:graeme@surfline.com">graeme@surfline.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've seen a couple of references in the archives to being able to either do a Mercator projection by<br>
adjusting the ylevels or using a version of GrADS that has this built in. Has anyone successfully done<br>
either of these? Any help would be greatly appreciated.<br>
<br>
The data sets I have are all in Lat/Lon/Variable format, but I need to display them on a 'standard'<br>
rectangular Mercator grid; linear Lon, but variable spaced lat.<br></blockquote><div><br></div><div>This is very easy with pygrads.</div><div><br></div><div>% pygrads -b</div><div>[] ga-> ga.open('model')</div>
<div>[] ga-> ga.basemap('merc',lat_ts=20) # for examle</div><div>[] ga-> ga.imshow('ts')</div><div><br></div><div>A sample figure is attached. In addition to mercator, you can plot your data on a very large number of map projections, many of them I never heard of. You can find more information on PyGrADS here:</div>
<div><br></div><div> <a href="http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS">http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS</a><br></div><div><br></div><div>IMPORTANT: There is a new version of Matplotlib (0.98) that breaks PyGrADS 1.0.8; I have a new version that works with this new Matplotlib but I am still testing it. Contact me directly if you would like to try it. PyGrADS should work with the Matlotlib available with most Linux distributions.</div>
<div><br></div><div> Arlindo</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks!<br>
<font color="#888888"><br>
Graeme<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>