<div dir="ltr"><div><div>As previously noted:<br><br>For a rectilinear grid: wgt_areaave_Wrap calculates an area average<br><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br>
<br></div>For a curvilinear grid: <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml</a><br><br></div>or a simple arithmetic average: avg<br>
<br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml</a><br><div><br><br><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Sep 1, 2014 at 7:57 AM, Kreienkamp Frank <span dir="ltr">&lt;<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank">Frank.Kreienkamp@dwd.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">Hello Dennis,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">sorry that my question wasn’t clear enough.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">Let my try again.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">The attached map is a displayed result of RCM-dataset. The original grid covers Europe. The displayed area covers Germany and a bit more.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">What I am looking for is a routine that calculates the mean value of the displayed area.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">Thanks in advance<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-GB">Frank<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US">Von:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US"> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>]
<b>Im Auftrag von </b>Dennis </span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Shea<br>
<b>Gesendet:</b> Montag, 1. September 2014 15:11<br>
<b>An:</b> Kreienkamp Frank<br>
<b>Cc:</b> ncl-talk<br>
<b>Betreff:</b> Re: [ncl-talk] mean value of all displayed grid points / pixel in a map<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The question is vague<br>
<br>
&quot;I want to calculate the mean value of all displayed grid points in a map.<br>
<br>
This means:<br>
- i have gridded data for the entire world (gcm-results)<br>
- i plot a map (stereographic projection) for Europe<br>
<br>
NCL draws a rectangle map based on the given resource parameters. I am<br>
looking for a function which counts all displayed values (pixel?) and<br>
calculates an average value.&quot;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">NCL handles &quot;gridded data for the entire world (gcm-results)&quot; all the time.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">[1]  dim_avg_n_Wrap will calculate the means at each grid point over all times.<u></u><u></u></p>
</div>
<p class="MsoNormal">[2] wgt_areaave_Wrap calculates an area average<u></u><u></u></p>
</div>
<p class="MsoNormal">[3] NCL can display much more than a &quot;rectangular map&quot;<u></u><u></u></p>
</div>
<p class="MsoNormal">[4] wks = gsn_open_wks(&quot;png&quot; ,&quot;frank&quot;)<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">     will send graphics to a png file<u></u><u></u></p>
</div>
<p class="MsoNormal">What do you mean by:<br>
<br>
&quot;Is there a chance that i can get the matrix-values which are send to the (png-)workstation?&quot;<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
=======<br>
<a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml</a><br>
<a href="https://www.ncl.ucar.edu/Applications/climo.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/climo.shtml</a><br>
<a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br>
<a href="https://www.ncl.ucar.edu/Applications/maponly.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/maponly.shtml</a><br>
 <a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Good luck<u></u><u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Sep 1, 2014 at 2:31 AM, Kreienkamp Frank &lt;<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank">Frank.Kreienkamp@dwd.de</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal">Hello ,<br>
<br>
since having no one answering the original question.<br>
<br>
Is there a chance that i can get the matrix-values which are send to the (png-)workstation?<br>
<br>
Thanks in advance<br>
Frank Kreienkamp<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>] Im Auftrag von Frank Kreienkamp<br>

Gesendet: Mittwoch, 27. August 2014 06:37<br>
An: ncl-talk<br>
Betreff: [ncl-talk] mean value of all displayed grid points / pixel in a map<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
Hello,<br>
<br>
i have searched the function list but i have not found a solution for the following problem.<br>
<br>
I want to calculate the mean value of all displayed grid points in a map.<br>
<br>
This means:<br>
- i have gridded data for the entire world (gcm-results)<br>
- i plot a map (stereographic projection) for Europe<br>
<br>
NCL draws a rectangle map based on the given resource parameters. I am looking for a function which counts all displayed values (pixel?) and calculates an average value.<br>
<br>
Thanks in advance<br>
Frank<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>
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><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></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>