<div dir="ltr">This response was inadvertently not sent to <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dennis Shea</b> <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>&gt;</span><br>Date: Mon, Sep 29, 2014 at 2:40 PM<br>Subject: Re: [ncl-talk] Regridding from fine to coarse resolution by aggregating not interpolating<br>To: &quot;Silva, Raquel&quot; &lt;<a href="mailto:rasilva@live.unc.edu">rasilva@live.unc.edu</a>&gt;<br>Cc: Carl Schreck &lt;<a href="mailto:cjschrec@ncsu.edu">cjschrec@ncsu.edu</a>&gt;<br><br><br><div dir="ltr"><div><div><div>You should be able to bin.  nlat and mlon *can* be different sizes.<br><br></div>I just ran: Example 2  (random data):<br><br><b><a href="http://www.ncl.ucar.edu/Applications/binning.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/binning.shtml</a></b><br><br></div>You can download the script and run it. Here nlat=36 and mlon=61<br><br>===<br><br><br></div><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 29, 2014 at 2:11 PM, Silva, Raquel <span dir="ltr">&lt;<a href="mailto:rasilva@live.unc.edu" target="_blank">rasilva@live.unc.edu</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" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Carl and Dennis,</p>
<p><br>
</p>
<p>Thanks for your quick responses.</p>
<p><br>
</p>
<p>I&#39;m getting the following error:</p>
<p>fatal:bin_sum: zlat must be the same size as zlon</p>
<p><br>
</p>
<p>where </p>
<p>  zlat = z_in-&gt;lat<br>
  zlon = z_in-&gt;lon<br>
<br>
</p>
<p>I thought that I could have different sizes for longitude and latitude.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Raquel<br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Dennis Shea &lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;<br>
<b>Sent:</b> Monday, September 29, 2014 4:05 PM<br>
<b>To:</b> Carl Schreck<br>
<b>Cc:</b> Silva, Raquel; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] Regridding from fine to coarse resolution by aggregating not interpolating</font>
<div> </div>
</div><div><div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Also, see:<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applications/</a><br>
<br>
</div>
on the right under &quot;Data Analysis&quot;, Click &quot;Binning&quot;<br>
<br>
</div>
There are a few examples.<br>
<br>
===<br>
</div>
If you are new to NCL, pleasesee<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Manuals/" target="_blank">http://www.ncl.ucar.edu/Document/Manuals/</a><br>
<br>
</div>
[1] Mini-Language Manual    (concise but detailed language overview)<br>
<br>
</div>
[2] the DKRZ tutorials. This is a rather large pdf.<br>
     The 1st contains a subset of the Mini-Language Manual plu many examples.<br>
</div>
     The 2nd has a lot of exercises. Unfortunately, not all the data sets are available<br>
</div>
     for general use.<br>
<br>
</div>
Cheers<br>
<div>
<div>
<div>
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 29, 2014 at 1:00 PM, Carl Schreck <span dir="ltr">
&lt;<a href="mailto:cjschrec@ncsu.edu" target="_blank">cjschrec@ncsu.edu</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">Hi Raquel,
<div><br>
</div>
<div>I believe bin_sum will do what you&#39;re looking for:</div>
<div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/bin_sum.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/bin_sum.shtml</a><br>
</div>
<div><br>
</div>
<div>    Carl</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Mon, Sep 29, 2014 at 2:25 PM, Silva, Raquel <span dir="ltr">&lt;<a href="mailto:rasilva@live.unc.edu" target="_blank">rasilva@live.unc.edu</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>I need to regrid global data from a fine (30&quot;x30&quot;) to a coarser (0.7x0.5 deg) resolution so that each output cell contains the sum of the input cells that are encompassed by the extent of that cell. Could you please let me know if there is an ncl function
 I could use?</p>
<p><br>
</p>
<p>Thanks,<br>
Raquel<br>
</p>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr"><br>
<table style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td align="center" height="71" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" height="93" width="96"></a>  <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br>
</a></span></span><br>
<font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a>  </font></td>
<td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br>
<b>Research Associate</b><br>
<a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">Cooperative Institute for Climate and Satellites NC</a> <br>
<a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br>
<a href="http://ncdc.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA&#39;s National Climatic Data Center</a><br>
151 Patton Ave, Asheville, NC 28801<br>
e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px">
<span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: <a href="tel:%2B1%20828%20257%203140" value="+18282573140" target="_blank">+1 828 257 3140</a><br>
</span></span><a href="http://scholar.google.com/citations?hl=en&amp;user=th8ONEcAAAAJ&amp;view_op=list_works&amp;sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br>
<a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px">
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>
</div></div></div><br></div></div>