On Sat, Apr 14, 2012 at 5:27 PM, Mark Hess <span dir="ltr"><<a href="mailto:mhess@oceani.com">mhess@oceani.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff">
<div><font face="Arial">Excellent thank you. Is there any way to
convert the lon from a 0-360 grid to world/geographic format 180 to -180 in this
process?</font></div>
<div><font face="Arial"></font> </div></div></blockquote><div><br></div><div>Yes, but this will require some "regridding" using the re() function. If you choose your longitude points carefully, the interpolation errors will be round-off. For example, if your original grid has longitudes: 0, 1, ..., 358, 359 (say, 1 degree), choose your destination grid to be: -180, -179, ..., 178, 179; specify the latitudes to be the same as the original grid. Since the destination grid has the same gridpoints as the final grid (just a different order), the interpolation errors will be negligible.</div>
<div><br></div><div>Read the REGRIDDING setion of the lats4d manual page.</div><div><br></div><div> Arlindo</div></div><div><br></div>-- <br><font face="'comic sans ms', sans-serif" size="6" color="#006600"><span style="font-family:Helvetica;font-size:12px"></span><span></span><span></span>Arlindo da Silva</font><br>
<font size="4"><i><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a></i></font><br>