<div dir="ltr"><div class="gmail_default" style="font-size:small">Tabish,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In order to regrid something from one resolution to another, you need to provide some kind of coordinate system.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, it depends on the type of values that you are regridding, what method to use.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You might want to look at &quot;linint2&quot;, which does basic bilinear interpolation:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/regrid.shtml">http://www.ncl.ucar.edu/Applications/regrid.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Even though the examples are showing the results over a map, you can still do the regridding using other coordinates.  You just want to plot it using gsn_csm_contour, instead of gsn_csm_contour_map.</div><div class="gmail_default"><br></div><div class="gmail_default">You might also look at &quot;area_hi2lores&quot;:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/area_hi2lores.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/area_hi2lores.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 13, 2015 at 5:44 AM, Tabish Ansari <span dir="ltr">&lt;<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have a 2d matrix of 531x636 size. I want to regrid it to a coarser resolution- 60x70 size. This has nothing to do with lat/lon at present. Once the desired output is achieved, I can assign the coordinate array separately.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">How can I do it?<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Regridding functions in NCL seem to overlay my regridded data onto the World Map with lots of negative values. And there are no negative or zero values in the original data. So, surely there is something wrong with these functions.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Please Help!<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">kind regards<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish</div><br></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>