<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div id="yiv0329510556"><div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div id="yiv0329510556"><div id="yiv0329510556yui_3_16_0_1_1409633117410_19029"><div id="yiv0329510556yui_3_16_0_1_1409633117410_19028" style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div id="yiv0329510556yui_3_16_0_6_1409633117410_4"><span id="yiv0329510556yui_3_16_0_6_1409633117410_11">Hi . </span><div id="yiv0329510556yui_3_16_0_1_1409633117410_15417">I am trying to plot the data in HDF format using NCL. </div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15418"><br clear="none"></div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15419">I happen to see the
ready script available <a id="yiv0329510556yui_3_16_0_1_1409633117410_15581" href="https://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_6.ncl" target="_blank" rel="nofollow" shape="rect"><font id="yiv0329510556yui_3_16_0_1_1409633117410_19036" color="#196ad4">https://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_6.ncl</font></a> which reads HDF data. </div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15584"><br clear="none"></div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15585">On my system I downloaded this script and tried to run this but when I run this, following message comes. </div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15586">bash-3.2$ ncl hdf4sds_6.ncl<br clear="none"> Copyright (C) 1995-2007 - All Rights Reserved<br clear="none"> University Corporation for Atmospheric Research<br clear="none"> NCAR Command Language Version 5.0.0<br clear="none"> The use of this software is governed by a License
Agreement.<br clear="none"> See <a id="yiv0329510556yui_3_16_0_1_1409633117410_15587" href="http://www.ncl.ucar.edu/" target="_blank" rel="nofollow" shape="rect"><font color="#196ad4">http://www.ncl.ucar.edu/</font></a> for more details.<br clear="none">fatal:_NclCreateFile: Requested file does not exist as (./2A12.20100702.71931.6.HDF) or as (./2A12.20100702.71931.6), can't add
file<br clear="none">fatal:Either file (f) isn't defined or variable (geolocation) is not a variable in the file<br clear="none">fatal:Execute: Error occurred at or near line 31 in file hdf4sds_6.ncl<br clear="none"> <br clear="none">bash-3.2$ ls -l *HDF*<br clear="none">-rw-r--r-- 1 model staff 55092053 Sep 01 15:54 2A12.20100702.71931.7.HDF<br clear="none">-rw-r--r-- 1 model staff 55092079 Aug 12 11:13 2A12.20130523.88390.7.HDF<br clear="none">-rw-r--r-- 1 model staff 55092085 Aug 12 15:27 2A12.20140602.94247.7.HDF<br clear="none">bash-3.2$ ls -l *hdf*ncl*<br clear="none">-rw-r--r-- 1 model staff 6725 Sep 01 17:01 hdf4sds_6.ncl<br clear="none">bash-3.2$<br
clear="none"></div><div><br clear="none"></div><div>The files exist in my directory. </div><div>Can somebody tell me what's mistake???</div><div id="yiv0329510556yui_3_16_0_1_1409633117410_15591">Geeta. </div></div><div id="yiv0329510556yui_3_16_0_6_1409633117410_14" style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;"><span id="yiv0329510556yui_3_16_0_6_1409633117410_13"><br clear="none"></span></div><div id="yiv0329510556yui_3_16_0_6_1409633117410_5"></div><div id="yiv0329510556yui_3_16_0_6_1409633117410_6"> </div> <div class="qtdSeparateBR"><br><br></div><div class="yiv0329510556yqt8807797924" id="yiv0329510556yqt78572"><div id="yiv0329510556yqt87251"><div id="yiv0329510556yui_3_16_0_6_1409633117410_9" style="display: none;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new
roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On
Monday, 1 September 2014 11:30 PM, "ncl-talk-request@ucar.edu" <ncl-talk-request@ucar.edu> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div>Send ncl-talk mailing list submissions to<br clear="none"> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none"><br clear="none">To subscribe or unsubscribe via the World Wide Web, visit<br clear="none"> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">or, via email, send a message with subject or body 'help' to<br clear="none"> <a href="mailto:ncl-talk-request@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a><br clear="none"><br
clear="none">You can reach the person managing the list at<br clear="none"> <a href="mailto:ncl-talk-owner@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-owner@ucar.edu">ncl-talk-owner@ucar.edu</a><br clear="none"><br clear="none">When replying, please edit your
Subject line so it is more specific<br clear="none">than "Re: Contents of ncl-talk digest..."<br clear="none"><br clear="none"><br clear="none">Today's Topics:<br clear="none"><br clear="none"> 1. Re: mean value of all displayed grid points / pixel in a map<br clear="none"> (Kreienkamp Frank)<br clear="none"> 2. Re: mean value of all displayed grid points / pixel in a map<br clear="none"> (Dennis Shea)<br clear="none"> 3. Re: how to mask out tibetan plateau when plotting fnl data?<br clear="none"> (Dennis Shea)<br clear="none"> 4. Re: mean value of all displayed grid points / pixel in a map<br clear="none"> (Kreienkamp Frank)<br clear="none"> 5. Re: mean value of all displayed grid points / pixel in a map<br clear="none"> (Dennis
Shea)<br clear="none"> 6. NCL Environment (azizul haque)<br clear="none"><br clear="none"><br clear="none">----------------------------------------------------------------------<br clear="none"><br clear="none">Message: 1<br clear="none">Date: Mon, 1 Sep 2014 08:31:17
+0000<br clear="none">From: Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">Subject: Re: [ncl-talk] mean value of all displayed grid points /<br clear="none"> pixel in a map<br clear="none">To: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br clear="none">Message-ID:<br clear="none"> <<a href="mailto:24EC7203DE46D64B95497AB11E28209D0180A136@OFWEXC22.win2003.dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:24EC7203DE46D64B95497AB11E28209D0180A136@OFWEXC22.win2003.dwd.de">24EC7203DE46D64B95497AB11E28209D0180A136@OFWEXC22.win2003.dwd.de</a>><br clear="none">Content-Type: text/plain; charset="iso-8859-1"<br clear="none"><br clear="none">Hello ,<br
clear="none"><br clear="none">since having no one answering the original question. <br clear="none"><br clear="none">Is there a chance that i can get the matrix-values which are send to the (png-)workstation?<br clear="none"><br clear="none">Thanks in advance<br clear="none">Frank Kreienkamp<br clear="none"><br clear="none">-----Urspr?ngliche
Nachricht-----<br clear="none">Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>] Im Auftrag von Frank Kreienkamp<br clear="none">Gesendet: Mittwoch, 27. August 2014 06:37<br clear="none">An: ncl-talk<br clear="none">Betreff: [ncl-talk] mean value of all displayed grid points / pixel in a map<br clear="none"><br clear="none">Hello,<br clear="none"><br clear="none">i have searched the function list but i have not found a solution for the following problem.<br clear="none"><br clear="none">I want to calculate the mean value of all displayed grid points in a map.<br clear="none"><br clear="none">This means:<br clear="none">- i have gridded data for the entire world
(gcm-results)<br clear="none">- i plot a map (stereographic projection) for Europe<br clear="none"><br clear="none">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 clear="none"><br clear="none">Thanks in
advance<br clear="none">Frank<br clear="none">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">Message: 2<br clear="none">Date: Mon, 1 Sep 2014 07:10:32 -0600<br clear="none">From: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:shea@ucar.edu">shea@ucar.edu</a>><br clear="none">Subject: Re: [ncl-talk] mean value of all displayed grid points /<br clear="none"> pixel in a map<br clear="none">To: Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank"
rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br clear="none">Message-ID:<br clear="none"> <CAOF1d_5fLasrvd+_2y_Y_FQ9qusm=hXnwrzdZ+<a href="mailto:d--eLMXtsnjA@mail.gmail.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:d--eLMXtsnjA@mail.gmail.com">d--eLMXtsnjA@mail.gmail.com</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none">The question is vague<br clear="none"><br clear="none">"I want to calculate the mean value of all displayed grid points in a map.<br clear="none"><br clear="none">This means:<br clear="none">- i have gridded data for the entire world (gcm-results)<br clear="none">- i plot a map (stereographic projection) for Europe<br
clear="none"><br clear="none">NCL draws a rectangle map based on the given resource parameters. I am<br clear="none">looking for a function which counts all displayed values (pixel?) and<br clear="none">calculates an average value."<br clear="none"><br clear="none">NCL handles "gridded data for the entire world (gcm-results)" all the time.<br clear="none"><br clear="none">[1] dim_avg_n_Wrap will calculate the means at each grid point over all<br clear="none">times.<br clear="none">[2] wgt_areaave_Wrap calculates an area average<br clear="none">[3] NCL can display much more than a "rectangular map"<br clear="none">[4] wks = gsn_open_wks("png" ,"frank")<br clear="none"> will send graphics to
a png file<br clear="none"><br clear="none">What do you mean by:<br clear="none"><br clear="none">"Is there a chance that i can get the matrix-values which are send to the<br clear="none">(png-)workstation?"<br clear="none"><br clear="none">=======<br clear="none"><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Applications/climo.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Applications/climo.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Applications/maponly.shtml"
target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Applications/maponly.shtml</a><br clear="none"><br clear="none"><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml</a><br clear="none"><br clear="none">Good luck<br clear="none"><br clear="none"><br clear="none">On Mon, Sep 1, 2014 at 2:31 AM, Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">wrote:<br clear="none"><br clear="none">> Hello ,<br clear="none">><br clear="none">> since having no one answering the original question.<br clear="none">><br clear="none">> Is there a chance that i can get the matrix-values which are send to the<br clear="none">>
(png-)workstation?<br clear="none">><br clear="none">> Thanks in advance<br clear="none">> Frank Kreienkamp<br clear="none">><br clear="none">> -----Urspr?ngliche Nachricht-----<br clear="none">> Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>] Im<br clear="none">> Auftrag von Frank Kreienkamp<br clear="none">> Gesendet: Mittwoch, 27. August 2014
06:37<br clear="none">> An: ncl-talk<br clear="none">> Betreff: [ncl-talk] mean value of all displayed grid points / pixel in a<br clear="none">> map<br clear="none">><br clear="none">> Hello,<br clear="none">><br clear="none">> i have searched the function list but i have not found a solution for the<br clear="none">> following problem.<br clear="none">><br clear="none">> I want to calculate the mean value of all displayed grid points in a map.<br clear="none">><br clear="none">> This means:<br clear="none">> - i have gridded data for the entire world (gcm-results)<br clear="none">> - i plot a map (stereographic projection) for Europe<br clear="none">><br clear="none">> NCL draws a rectangle map based on the given resource parameters. I am<br clear="none">> looking for a function which counts all displayed values (pixel?) and<br clear="none">> calculates an average value.<br clear="none">><br
clear="none">> Thanks in advance<br clear="none">> Frank<br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">-------------- next part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <a
href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/ddc2818e/attachment-0001.html" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/ddc2818e/attachment-0001.html</a><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">Message: 3<br clear="none">Date: Mon, 1 Sep 2014 07:40:20 -0600<br clear="none">From: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:shea@ucar.edu">shea@ucar.edu</a>><br clear="none">Subject: Re: [ncl-talk] how to mask out tibetan plateau when
plotting<br clear="none"> fnl data?<br clear="none">To: Li Qi <<a href="mailto:liqi123sh@qq.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:liqi123sh@qq.com">liqi123sh@qq.com</a>><br clear="none">Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br clear="none">Message-ID:<br clear="none"> <CAOF1d_7VYWYycLfeROpVJ9FtvLa4-z=<a href="mailto:hqqbE153LKXBi9nBHKQ@mail.gmail.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:hqqbE153LKXBi9nBHKQ@mail.gmail.com">hqqbE153LKXBi9nBHKQ@mail.gmail.com</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none"> You must provide more information!<br clear="none"><br clear="none">ncl-talk does not know what 'FNL' is. A GRIB file?<br clear="none">What data do you have available?<br
clear="none">What type of grid do you have .... curvilinear or rectilinear?<br clear="none"><br clear="none">If you have (say) surface geopotential (m) and you are on a curvilinear<br clear="none">grid ... one approach<br clear="none"><br clear="none"> f = addfile(...)<br clear="none"> x = f->X ;
(level,nlat,mlon) ?????<br clear="none"> phis = f->PHIS ; (nlat,mlon)<br clear="none"><br clear="none"> lat2d = f-><br clear="none"> lon2d = f-><br clear="none"><br clear="none"> lvmask = (/700, 850 /)<br clear="none"><br clear="none"> do kl=1,dimsizes(lvmask)-1<br clear="none"> x({lvmask},:,:) = where(lat2d.gt. 25 .and. lat2d.lt. 42 .and. \<br clear="none"> lon2d.gt. 70 .and. lon2d.lt.110<br clear="none">.and. \<br clear="none"> phis.gt.1500, <a href="mailto:x@_FillValue" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:x@_FillValue">x@_FillValue</a>,<br
clear="none">x({lvmask},:,:))<br clear="none"> end do<br clear="none"><br clear="none"><br clear="none">On Sun, Aug 31, 2014 at 6:48 AM, Li Qi <<a href="mailto:liqi123sh@qq.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:liqi123sh@qq.com">liqi123sh@qq.com</a>> wrote:<br clear="none"><br clear="none">> Dear
all,<br clear="none">><br clear="none">> I'd like to ask how to mask out tibetan plateau when plotting FNL data on<br clear="none">> 700hPa and 850hPa.<br clear="none">><br clear="none">> Any advice will be greatly appreciated!<br clear="none">><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">><br clear="none">-------------- next part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/e3770b59/attachment-0001.html" target="_blank" rel="nofollow"
shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/e3770b59/attachment-0001.html</a><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">Message: 4<br clear="none">Date: Mon, 1 Sep 2014 13:57:06 +0000<br clear="none">From: Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">Subject: Re: [ncl-talk] mean value of all displayed grid points /<br clear="none"> pixel in a map<br clear="none">Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br clear="none">Message-ID:<br clear="none"> <<a href="mailto:24EC7203DE46D64B95497AB11E28209D0180A1A5@OFWEXC22.win2003.dwd.de"
target="_blank" rel="nofollow" shape="rect" ymailto="mailto:24EC7203DE46D64B95497AB11E28209D0180A1A5@OFWEXC22.win2003.dwd.de">24EC7203DE46D64B95497AB11E28209D0180A1A5@OFWEXC22.win2003.dwd.de</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none">Hello Dennis,<br clear="none"><br clear="none">sorry that my question wasn?t clear enough.<br clear="none"><br clear="none">Let my try again.<br clear="none">The attached map is a displayed result of RCM-dataset. The original grid covers Europe. The displayed area covers Germany and a bit more.<br clear="none"><br clear="none">What I am looking for is a routine that calculates the mean value of
the displayed area.<br clear="none"><br clear="none">Thanks in advance<br clear="none">Frank<br clear="none"><br clear="none">Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>] Im Auftrag von Dennis Shea<br clear="none">Gesendet: Montag, 1. September 2014 15:11<br clear="none">An: Kreienkamp Frank<br clear="none">Cc: ncl-talk<br clear="none">Betreff: Re: [ncl-talk] mean value of all displayed grid points / pixel in a map<br clear="none"><br clear="none">The question is vague<br clear="none"><br clear="none">"I want to calculate the mean value of all displayed grid points in a map.<br clear="none"><br clear="none">This means:<br clear="none">- i have gridded data for the
entire world (gcm-results)<br clear="none">- i plot a map (stereographic projection) for Europe<br clear="none"><br clear="none">NCL draws a rectangle map based on the given resource parameters. I am<br clear="none">looking for a function which counts all displayed values (pixel?) and<br clear="none">calculates an average value."<br clear="none">NCL handles "gridded data for
the entire world (gcm-results)" all the time.<br clear="none"><br clear="none">[1] dim_avg_n_Wrap will calculate the means at each grid point over all times.<br clear="none">[2] wgt_areaave_Wrap calculates an area average<br clear="none">[3] NCL can display much more than a "rectangular map"<br clear="none">[4] wks = gsn_open_wks("png" ,"frank")<br clear="none"> will send graphics to a png file<br clear="none">What do you mean by:<br clear="none"><br clear="none">"Is there a chance that i can get the matrix-values which are send to the (png-)workstation?"<br clear="none"><br clear="none">=======<br clear="none"><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Applications/climo.shtml" target="_blank" rel="nofollow"
shape="rect">https://www.ncl.ucar.edu/Applications/climo.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br clear="none"><a href="https://www.ncl.ucar.edu/Applications/maponly.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Applications/maponly.shtml</a><br clear="none"> <a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml</a><br clear="none">Good luck<br clear="none"><br clear="none">On Mon, Sep 1, 2014 at 2:31 AM, Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect"
ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a><mailto:<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>>> wrote:<br clear="none">Hello ,<br clear="none"><br clear="none">since having no one answering the original question.<br clear="none"><br clear="none">Is there a chance that i can get the matrix-values which are send to the (png-)workstation?<br clear="none"><br clear="none">Thanks in advance<br clear="none">Frank
Kreienkamp<br clear="none"><br clear="none">-----Urspr?ngliche Nachricht-----<br clear="none">Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a><mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a><mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>>] Im Auftrag von Frank Kreienkamp<br clear="none">Gesendet: Mittwoch, 27. August 2014 06:37<br clear="none">An: ncl-talk<br clear="none">Betreff: [ncl-talk] mean value of all displayed grid
points / pixel in a map<br clear="none"><br clear="none">Hello,<br clear="none"><br clear="none">i have searched the function list but i have not found a solution for the following problem.<br clear="none"><br clear="none">I want to calculate the mean value of all displayed grid points in a map.<br clear="none"><br clear="none">This means:<br clear="none">- i have gridded
data for the entire world (gcm-results)<br clear="none">- i plot a map (stereographic projection) for Europe<br clear="none"><br clear="none">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 clear="none"><br clear="none">Thanks in advance<br clear="none">Frank<br clear="none">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"><br clear="none">-------------- next part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/8e44eb25/attachment-0001.html" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/8e44eb25/attachment-0001.html</a><br clear="none">-------------- next part --------------<br clear="none">A non-text attachment was scrubbed...<br clear="none">Name: ex1.png<br clear="none">Type: image/png<br clear="none">Size: 167048 bytes<br clear="none">Desc: ex1.png<br clear="none">Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/8e44eb25/attachment-0001.png" target="_blank" rel="nofollow"
shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/8e44eb25/attachment-0001.png</a><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">Message: 5<br clear="none">Date: Mon, 1 Sep 2014 08:13:16 -0600<br clear="none">From: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:shea@ucar.edu">shea@ucar.edu</a>><br clear="none">Subject: Re: [ncl-talk] mean value of all displayed grid points /<br clear="none"> pixel in a map<br clear="none">To: Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br
clear="none">Message-ID:<br clear="none"> <CAOF1d_4db6r2obT+j1zbayyd4u20WfNp+<a href="mailto:sf5PnWjJ0OcuDSqtw@mail.gmail.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:sf5PnWjJ0OcuDSqtw@mail.gmail.com">sf5PnWjJ0OcuDSqtw@mail.gmail.com</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none">As previously noted:<br clear="none"><br clear="none">For a rectilinear grid: wgt_areaave_Wrap calculates an area average<br clear="none"><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br clear="none"><br clear="none">For a curvilinear grid:<br clear="none"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml" target="_blank" rel="nofollow"
shape="rect">http://www.ncl.ucar.edu/Document/Functions/Built-in/wgt_areaave2.shtml</a><br clear="none"><br clear="none">or a simple arithmetic average: avg<br clear="none"><br clear="none"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml" target="_blank" rel="nofollow" shape="rect">http://www.ncl.ucar.edu/Document/Functions/Built-in/avg.shtml</a><br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none">On Mon, Sep 1, 2014 at 7:57 AM, Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">wrote:<br clear="none"><br clear="none">> Hello Dennis,<br clear="none">><br clear="none">><br clear="none">><br clear="none">> sorry that my question wasn?t clear enough.<br clear="none">><br clear="none">><br clear="none">><br
clear="none">> Let my try again.<br clear="none">><br clear="none">> The attached map is a displayed result of RCM-dataset. The original grid<br clear="none">> covers Europe. The displayed area covers Germany and a bit more.<br clear="none">><br clear="none">><br clear="none">><br clear="none">> What I am looking for is a routine that calculates the mean value of the<br clear="none">> displayed
area.<br clear="none">><br clear="none">><br clear="none">><br clear="none">> Thanks in advance<br clear="none">><br clear="none">> Frank<br clear="none">><br clear="none">><br clear="none">><br clear="none">> *Von:* <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>] *Im<br clear="none">> Auftrag von *Dennis Shea<br clear="none">> *Gesendet:* Montag, 1. September 2014 15:11<br clear="none">> *An:* Kreienkamp Frank<br clear="none">> *Cc:* ncl-talk<br clear="none">> *Betreff:* Re: [ncl-talk] mean value of all displayed grid points / pixel<br clear="none">> in a map<br clear="none">><br clear="none">><br clear="none">><br
clear="none">> The question is vague<br clear="none">><br clear="none">> "I want to calculate the mean value of all displayed grid points in a map.<br clear="none">><br clear="none">> This means:<br clear="none">> - i have gridded data for the entire world (gcm-results)<br clear="none">> - i plot a map (stereographic projection) for Europe<br clear="none">><br clear="none">> NCL draws a rectangle map based on the given
resource parameters. I am<br clear="none">> looking for a function which counts all displayed values (pixel?) and<br clear="none">> calculates an average value."<br clear="none">><br clear="none">> NCL handles "gridded data for the entire world (gcm-results)" all the time.<br clear="none">><br clear="none">><br clear="none">><br clear="none">> [1] dim_avg_n_Wrap will calculate the means at each grid point over all<br clear="none">> times.<br clear="none">><br clear="none">> [2] wgt_areaave_Wrap calculates an area average<br clear="none">><br clear="none">> [3] NCL can display much more than a "rectangular map"<br clear="none">><br clear="none">> [4] wks = gsn_open_wks("png" ,"frank")<br clear="none">><br clear="none">> will send graphics to a png file<br clear="none">><br clear="none">> What do you mean by:<br clear="none">><br clear="none">> "Is there a chance that
i can get the matrix-values which are send to the<br clear="none">> (png-)workstation?"<br clear="none">><br clear="none">><br clear="none">> =======<br clear="none">><br clear="none">> <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml</a><br clear="none">> <a href="https://www.ncl.ucar.edu/Applications/climo.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Applications/climo.shtml</a><br clear="none">><br clear="none">> <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_areaave_Wrap.shtml</a><br clear="none">> <a href="https://www.ncl.ucar.edu/Applications/maponly.shtml" target="_blank" rel="nofollow"
shape="rect">https://www.ncl.ucar.edu/Applications/maponly.shtml</a><br clear="none">><br clear="none">> <a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml" target="_blank" rel="nofollow" shape="rect">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map.shtml</a><br clear="none">><br clear="none">> Good luck<br clear="none">><br clear="none">><br clear="none">><br clear="none">> On Mon, Sep 1, 2014 at 2:31 AM, Kreienkamp Frank <<a href="mailto:Frank.Kreienkamp@dwd.de" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:Frank.Kreienkamp@dwd.de">Frank.Kreienkamp@dwd.de</a>><br clear="none">> wrote:<br clear="none">><br clear="none">> Hello ,<br clear="none">><br clear="none">> since having no one answering the original question.<br clear="none">><br clear="none">> Is there a chance that i can get the matrix-values which are send to the<br
clear="none">> (png-)workstation?<br clear="none">><br clear="none">> Thanks in advance<br clear="none">> Frank Kreienkamp<br clear="none">><br clear="none">> -----Urspr?ngliche Nachricht-----<br clear="none">> Von: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>] Im<br clear="none">> Auftrag von Frank Kreienkamp<br clear="none">> Gesendet: Mittwoch, 27. August 2014 06:37<br clear="none">> An: ncl-talk<br clear="none">> Betreff: [ncl-talk] mean value of all displayed grid points / pixel in a<br clear="none">> map<br clear="none">><br clear="none">><br clear="none">> Hello,<br clear="none">><br clear="none">> i have searched the
function list but i have not found a
solution for the<br clear="none">> following problem.<br clear="none">><br clear="none">> I want to calculate the mean value of all displayed grid points in a map.<br clear="none">><br clear="none">> This means:<br clear="none">> - i have gridded data for the entire world (gcm-results)<br clear="none">> - i plot a map (stereographic projection) for Europe<br clear="none">><br clear="none">> NCL draws a rectangle map based on the given resource parameters. I am<br clear="none">> looking for a function which counts all displayed values (pixel?) and<br clear="none">> calculates an average value.<br clear="none">><br clear="none">> Thanks in advance<br clear="none">> Frank<br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options,
unsubscribe:<br clear="none">> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">><br clear="none">-------------- next part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/36ac4b17/attachment-0001.html" target="_blank" rel="nofollow"
shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/36ac4b17/attachment-0001.html</a><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">Message: 6<br clear="none">Date: Mon, 1 Sep 2014 09:33:22 -0700<br clear="none">From: azizul haque <<a href="mailto:haque.azizul320@yahoo.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:haque.azizul320@yahoo.com">haque.azizul320@yahoo.com</a>><br clear="none">Subject: [ncl-talk] NCL Environment<br clear="none">To: "<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br clear="none">Message-ID:<br clear="none"> <<a
href="mailto:1409589202.86755.YahooMailNeo@web121901.mail.ne1.yahoo.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:1409589202.86755.YahooMailNeo@web121901.mail.ne1.yahoo.com">1409589202.86755.YahooMailNeo@web121901.mail.ne1.yahoo.com</a>><br clear="none">Content-Type: text/plain; charset="utf-8"<br clear="none"><br clear="none">Hi All,<br clear="none">Recently I am having nil environment problem. I have two sources of CMIP5 data(user/local and /Volumes/BOULDER). I tried to do plotting and having following error message.<br clear="none">*********warning:Unable to Get System Resource File Name?<br clear="none">warning:Unable to load System Resource File (null)<br clear="none">fatal:GetSysAppDir:Unable to get a
default value for the system App Resource directory<br clear="none">warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL<br clear="none">fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory<br clear="none">warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL<br clear="none">warning:Unable to Get System Resource File Name?<br clear="none">warning:WorkstationClassInitialize:Unable to access rgb color database - named colors unsupported:[errno=2]<br clear="none">NDV_COLORMAP_PATH environment variable not set:<br clear="none">defaulting to .:$NCARG_ROOT/lib/ncarg/colormaps<br clear="none">warning:["Palette.c":1844]:NhlLoadColormapFiles: Invalid directory encountered in colormap path specification<br clear="none">/usr/local/bin/ncl: line 5: 987 Segmentation fault: 11 /usr/local/ncl/bin/ncl "$@"*********<br clear="none">In the both data sources location I
see above problem.<br clear="none"><br clear="none">Your shortly response and help are highly appreciated<br clear="none"><br clear="none">Regards<br clear="none">Azizul<br clear="none">-------------- next
part --------------<br clear="none">An HTML attachment was scrubbed...<br clear="none">URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/915ded6d/attachment-0001.html" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/915ded6d/attachment-0001.html</a><br clear="none"><br clear="none">------------------------------<br clear="none"><br clear="none">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"><br clear="none"><br clear="none">End of ncl-talk Digest, Vol 130, Issue 1<br
clear="none">****************************************<br clear="none"><br clear="none"><br clear="none"></div> </div> </div> </div></div></div> </div></div></div></div></div></div></div></body></html>