<div dir="ltr">Hi Frank,<div><br></div><div>There is no such magic step - plotting is commonly done by simple contouring of the data, there is no array of &#39;pixels&#39; to be found anywhere as NCL will plot the data. To answer your earlier question, a point of data cannot be &quot;partially&quot; plotted - it is either in the plot or it isn&#39;t. As such, you might be able to determine lines that bound the plotted data and use the vertices of these lines alongside the gc_inout function (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/gc_inout.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/gc_inout.shtml</a>) to find which points are within these boundaries. At that point, you could calculate the average.</div>

<div><br></div><div>NCL is meant to work with the actual data, not a graphical interpretation of the data. You must be able to calculate the locations of the boundaries of the area you want to average over, as NCL can only do math over the data you provide it. If you want to avoid calculating these boundaries, I suggest either determining by trial and error (plot many lat/lon lines on your map, estimate the vertices along the edge, use this to create a bounding polygon) OR you can try creating your own boundaries, drawing them on the map with a polyline function, and then simply stating what the average is within this known area.</div>

<div><br></div><div>Hope this provides some insight and simplifies your thoughts some...</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------<div>

Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div>

</div></div>
<br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 5:25 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 lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Yes the idea of removing all grid points that are not displayed might be an solution.<u></u><u></u></span></p>


<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">But from my current view I have several problems. The two central are:<u></u><u></u></span></p>


<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>a)<span style="font:7.0pt &quot;Times New Roman&quot;">     
</span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I define the plot parameter using:<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpProjection                  = &quot;Stereographic&quot;<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpCenterLatF                  = 50                 ; Centered over Germany<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpCenterLonF                  = 10                 ; Centered over Germany<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpLimitMode                   = &quot;Corners&quot;          ; choose range of map<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpLeftCornerLatF              =  55.8<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpLeftCornerLonF              =   2.6<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpRightCornerLatF             =  45.1<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   res@mpRightCornerLonF             =  19.5<u></u><u></u></span></p>
<p><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">So two points of the rectangle are missing. If the
</span><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">res@mpCenterLonF
</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">is not central, calculating the two needed points is not easy.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>b)<span style="font:7.0pt &quot;Times New Roman&quot;">     
</span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">What to do with points which are only partly drawn. I would like to have this part inside the average value. For fine grids with many
 points, missing few might not be an issue. With coarse grids this might produce a problem.</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> 
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">My hope was, that there is point when I can catch a ‘transfer array’ in the moment when the grid is transferred to the (png-) workstation, after
 all the projection part is done. Like there would be an matrix of points(pixel) which are displayed.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank for your help
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Frank<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><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;">Von:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <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>Maria Gehne - NOAA Affiliate<br>
<b>Gesendet:</b> Mittwoch, 3. September 2014 17:31</span></p><div><div class="h5"><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></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Frank,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">how are you deciding which area to plot? You must have something in your code that limits the area shown in the figure. Why don&#39;t you just use coordinate indexing to extract the region of interest from your data and set everything else
 to _FillValue. That way you can compute the area average and only the points that are not missing will be used for the average. Is that what you were looking for?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Maria<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Sep 3, 2014 at 12:07 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>
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello Dennis,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">if i read the webpage correctly the suggested functions are not what i am looking for.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Yes, I am looking for an areal average.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">No, it is not for an rectangular grid.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I have an rectangular grid as the ‘base’. Using this grid and a polar stereographic
 projection I am drawing a map. This map is showing  only a part of the hole ‘base’ grid. I am looking for an average of this shown/drawn part.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Writing the same from a different view. I am looking for a function what calculates
 the average values of the presented map. See the example in my previous e-mail.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">As far a I understand the description correctly this in not what the function wgt_areaave_wrap
 provides.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks in advance</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Frank</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Dennis Shea [mailto:<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>]
<br>
<b>Gesendet:</b> Montag, 1. September 2014 16:13</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><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></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">For a curvilinear grid:
<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml" target="_blank">
http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml</a><u></u><u></u></p>
</div>
<p class="MsoNormal">or a simple arithmetic average: avg<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml</a><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal"> <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 7:57 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>
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello Dennis,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">sorry that my question wasn’t clear enough.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Let my try again.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The attached map is a displayed result of RCM-dataset. The original grid covers Europe.
 The displayed area covers Germany and a bit more.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">What I am looking for is a routine that calculates the mean value of the displayed area.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks in advance</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Frank</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<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</span><u></u><u></u></p>
<div>
<div>
<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>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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>
<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>