<div dir="ltr"><div class="gmail_default" style="font-size:small">Heri,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In the future, please post installation issues to ncl-install and not ncl-talk.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, please don't include a bunch of digest email from other postings, because it becomes hard to read.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You said you couldn't run any NCL commands, but you are running nedit" which is not an NCL command. This is a UNIX editor, and is developed and supported by somebody else. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you google:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> "nedit UTF8 locale not supported"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You will get lots of hits with potential solutions.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are having problems running NCL, then please include the command that you are typing and the error message in a new email post, so we can read it better.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 2:48 AM, Heri Kuswanto <span dir="ltr"><<a href="mailto:kuswanto.its82@yahoo.com" target="_blank">kuswanto.its82@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>Dear all,</span></div><div><br></div><div dir="ltr">I tried to install ncl in my WIndows system. It works but when I try to run it by writing "nedit" it give the following message " UTF8 locale not supported". Consequently, I cannot run any *.ncl command. The detail is as follows:<br><br>$ startxwin<br><br>--------------------------------------------------------------<br>Could not load crashreporter dll<br>Welcome to the XWin X Server<br>Vendor: The Cygwin/X Project<br>Release: 1.17.1.0<br>OS: CYGWIN_NT-6.1 ROSYIDI-PC 2.0.1(0.287/5/3) 2015-04-30 18:13 i686<br>OS: Windows 7 [Windows NT 6.1 build 7600] (Win32)<br>Package: version 1.17.1-4 built 2015-05-01<br><br>XWin was started with the following command line:<br><br>/usr/bin/XWin :0 -multiwindow -auth<br> /home/ROSYIDI/.serverauth.5928<br><br>Could not load crashreporter dll<br>(II) xorg.conf is not supported<br>(II) See <a href="http://x.cygwin.com/docs/faq/cygwin-x-faq.html" target="_blank">http://x.cygwin.com/docs/faq/cygwin-x-faq.html</a> for more information<br>LoadPreferences: /home/ROSYIDI/.XWinrc not found<br>LoadPreferences: Loading /etc/X11/system.XWinrc<br>LoadPreferences: Done parsing the configuration file...<br>winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL<br>winDetectSupportedEngines - Returning, supported engines 00000005<br>winSetEngine - Multi Window or Rootless => ShadowGDI<br>winScreenInit - Using Windows display depth of 32 bits per pixel<br>winAllocateFBShadowGDI - Creating DIB with width: 1366 height: 768 depth: 32<br>winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff<br>winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32<br>MIT-SHM extension disabled due to lack of kernel support<br>XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel<br>glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'<br>(II) AIGLX: Testing pixelFormatIndex 1<br>GL_VERSION: 4.1.10825 Compatibility Profile Context<br>GL_VENDOR: ATI Technologies Inc.<br>GL_RENDERER: AMD Radeon HD 6320 Graphics<br>(II) AIGLX: enabled GLX_SGI_make_current_read<br>(II) AIGLX: enabled GLX_MESA_copy_sub_buffer<br>(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control<br>(II) AIGLX: enabled GLX_SGIX_pbuffer<br>(II) AIGLX: enabled GLX_ARB_multisample and GLX_SGIS_multisample<br>(II) 95 pixel formats reported by wglGetPixelFormatAttribivARB<br>(II) AIGLX: Set GLX version to 1.4<br>(II) 24 fbConfigs<br>(II) ignored pixel formats: 0 not OpenGL, 12 RBGA float, 24 RGBA unsigned float, 0 unknown pixel type, 35 unaccelerated<br>(II) GLX: Initialized Win32 native WGL GL provider for screen 0<br>winPointerWarpCursor - Discarding first warp: 683 384<br>(--) 5 mouse buttons found<br>(--) Setting autorepeat to delay=500, rate=31<br>(--) Windows keyboard layout: "00000409" (00000409) "US", type 7<br>(--) Found matching XKB configuration "English (USA)"<br>(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"<br>Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"<br>winInitMultiWindowWM - DISPLAY=:0.0<br>winMultiWindowXMsgProc - DISPLAY=:0.0<br>winProcEstablishConnection - winInitClipboard returned.<br>winClipboardThreadProc - DISPLAY=:0.0<br>OS maintains clipboard viewer chain: yes<br>winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.<br>winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.<br>winClipboardProc - XOpenDisplay () returned and successfully opened the display.<br>winMultiWindowXMsgProcErrorHandler - ERROR: BadMatch (invalid parameter attributes)<br>---------------------------------------------------------------------------------------------------------------------------------------<br>$nedit<br><br>UTF8 locale not supported.<br><br>--------------<br>Anyone know the solution, please?<br><br>Thanks for your help. <br><br>Heri<br><br><span></span></div><div><span></span></div> <br><div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, June 4, 2015 1:00 AM, "<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>" <<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>> wrote:<br> </font> </div> <br><br> <div>Send ncl-talk mailing list submissions to<br> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a><br><br>You can reach the person managing the list at<br> <a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of ncl-talk digest..."<br><br><br>Today's Topics:<br><br> 1. Re: exporting variables and dimensions in excel sheet<br> (Rick Brownrigg)<br> 2. Re: Editing a netcdf4 file (David Brown)<br> 3. Re: fileattdef seg fault on CESM LE files (David Brown)<br> 4. Re: drawing RMS semi-circles in Taylor diagram (Alan Brammer)<br> 5. Re: functions handling input of unknown dimension (Dennis Shea)<br> 6. Re: Panel Plot (Dennis Shea)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 3 Jun 2015 08:07:07 -0600<br>From: Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>><br>Subject: Re: [ncl-talk] exporting variables and dimensions in excel<br> sheet<br>To: amit timilsina <<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>><br>Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <<a href="mailto:CAGKRhbEKr8MqfHvsaNvxCWWy8FaqA2EyTUqCUXu3Q2Jh7oOB7A@mail.gmail.com" target="_blank">CAGKRhbEKr8MqfHvsaNvxCWWy8FaqA2EyTUqCUXu3Q2Jh7oOB7A@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi,<br><br>Are you wanting to import these data into an Excel spreadsheet from the<br>NetCDF file? If using NCL for this purpose, you likely want to write a<br>comma-separated-file (csv), which Excel could directly import. Check out<br>the ascii-output examples at:<br><br><a href="http://ncl.ucar.edu/Applications/o-ascii.shtml" target="_blank">http://ncl.ucar.edu/Applications/o-ascii.shtml</a><br><br>particularly the write_table function.<br><br>Rick<br><br>On Wed, Jun 3, 2015 at 7:58 AM, amit timilsina <<br><a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>> wrote:<br><br>><br>> Hello all,<br>> The attached file contains tasmin_diff variable, and month,lat and lon<br>> dimensions. Is it possible to export these all in combination in excel<br>> sheet? Please share link any procedure described. Thanks in advance<br>><br>><br>> Regards,<br>> Amit<br>> _______________________________________________<br>> ncl-talk mailing list<br>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/c6682ba7/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/c6682ba7/attachment-0001.html </a><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 3 Jun 2015 08:50:48 -0600<br>From: David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>><br>Subject: Re: [ncl-talk] Editing a netcdf4 file<br>To: Gerry Creager - NOAA Affiliate <<a href="mailto:gerry.creager@noaa.gov" target="_blank">gerry.creager@noaa.gov</a>><br>Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <<a href="mailto:CAC92F7fVj6XAh_MEMGiS24wMMK9v13Pw-3piOcz6rvaVAofn6g@mail.gmail.com" target="_blank">CAC92F7fVj6XAh_MEMGiS24wMMK9v13Pw-3piOcz6rvaVAofn6g@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Hi Dustin and Gerry,<br>I have confirmed there is a problem. It has been partially but not<br>completely fixed in the development version of the code. I am looking<br>into the remaining issue and will let you know when it has been fixed.<br> -dave<br><br>On Tue, Jun 2, 2015 at 10:34 AM, Gerry Creager - NOAA Affiliate<br><<a href="mailto:gerry.creager@noaa.gov" target="_blank">gerry.creager@noaa.gov</a>> wrote:<br>> Additional information: If we do an addfile("<filename>","r"), we can open<br>> and read the file. If we use "w", well, we can open the file but assigning<br>> an existing variable to an internal variable fails on the assign (var =<br>> a->QRAIN). Of course, because it fails there, we can't see if it'd also fail<br>> on write.<br>><br>> Thanks<br>> Gerry<br>><br>> On Mon, Jun 1, 2015 at 7:15 PM, Gerry Creager - NOAA Affiliate<br>> <<a href="mailto:gerry.creager@noaa.gov" target="_blank">gerry.creager@noaa.gov</a>> wrote:<br>>><br>>> I've started looking at this with Dusty. Appreciate any thought you might<br>>> have as to why we're failing.<br>>><br>>> I've uploaded the input file (wrfinput_d02) to the FTP incoming site. I'm<br>>> testing with the script:<br>>><br>>> var = "QRAIN"<br>>> print(var)<br>>> a=addfile("<a href="http://wrfinput_d02.nc" target="_blank">wrfinput_d02.nc</a>", "w")<br>>> var_orig=a->QRAIN<br>>> print(var_orig)<br>>><br>>><br>>> The result looks like:<a href="mailto:gerry@loki" target="_blank">gerry@loki</a>:~/NEWSe/NCL> ncl test.ncl<br>>> Copyright (C) 1995-2015 - All Rights Reserved<br>>> University Corporation for Atmospheric Research<br>>> NCAR Command Language Version 6.3.0<br>>> The use of this software is governed by a License Agreement.<br>>> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/ </a>for more details.<br>>><br>>><br>>> Variable: var<br>>> Type: string<br>>> Total Size: 8 bytes<br>>> 1 values<br>>> Number of Dimensions: 1<br>>> Dimensions and sizes: [1]<br>>> Coordinates:<br>>> (0) QRAIN<br>>> fatal:["NclNetCDF4.c":3073]:NclNetCDF4.c: Error in nc_def_var_chunking in<br>>> file (<a href="http://wrfinput_d02.nc" target="_blank">wrfinput_d02.nc</a>) for writing, at line: 3073<br>>><br>>> line 3074 of NclNetCDF4.c: NetCDF: Attempt to define var properties, like<br>>> deflate, after enddef.<br>>><br>>><br>>> On Fri, May 29, 2015 at 8:54 PM, Dustan Wheatley - NOAA Affiliate<br>>> <<a href="mailto:dustan.wheatley@noaa.gov" target="_blank">dustan.wheatley@noaa.gov</a>> wrote:<br>>>><br>>>> I am trying to overwrite a netcdf4 file analogous to what is shown at<br>>>> <a href="http://www.ncl.ucar.edu/Applications/change_netCDF.shtml." target="_blank">http://www.ncl.ucar.edu/Applications/change_netCDF.shtml. </a> In the attached<br>>>> ncl script, I open the file to be modified at line 35 and attempt the<br>>>> modification at line 73 (with a lot of calculations in between). While I<br>>>> have double-checked that the modified field (var_mod) has the same<br>>>> dimensionality as the original variable (QRAIN), I am still get a<br>>>> segmentation fault/core dump. Never had this problem when I tried to<br>>>> manipulate netcdf3 files. Could it possibly be related to the netcdf4<br>>>> compression? It?s possible I may be trying to do something that?s no longer<br>>>> possible.<br>>>><br>>>> Thanks in advance for any suggestions.<br>>>><br>>>> -Dusty Wheatley<br>>>><br>>>> _______________________________________________<br>>>> ncl-talk mailing list<br>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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>>><br>>><br>>><br>>> --<br>>> Gerry Creager<br>>> NSSL/CIMMS<br>>> <a href="tel:405.325.6371" value="+14053256371" target="_blank">405.325.6371</a><br>>> ++++++++++++++++++++++<br>>> ?Big whorls have little whorls,<br>>> That feed on their velocity;<br>>> And little whorls have lesser whorls,<br>>> And so on to viscosity.?<br>>> Lewis Fry Richardson (1881-1953)<br>><br>><br>><br>><br>> --<br>> Gerry Creager<br>> NSSL/CIMMS<br>> <a href="tel:405.325.6371" value="+14053256371" target="_blank">405.325.6371</a><br>> ++++++++++++++++++++++<br>> ?Big whorls have little whorls,<br>> That feed on their velocity;<br>> And little whorls have lesser whorls,<br>> And so on to viscosity.?<br>> Lewis Fry Richardson (1881-1953)<br>><br>> _______________________________________________<br>> ncl-talk mailing list<br>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 3 Jun 2015 09:36:55 -0600<br>From: David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>><br>Subject: Re: [ncl-talk] fileattdef seg fault on CESM LE files<br>To: "David B. Reusch" <<a href="mailto:dreusch@ees.nmt.edu" target="_blank">dreusch@ees.nmt.edu</a>><br>Cc: NCL Talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <CAC92F7dnPLD=<a href="mailto:J4_Odjydw7hkALzbn1vGoLXUHGGxhRwNpMs4CA@mail.gmail.com" target="_blank">J4_Odjydw7hkALzbn1vGoLXUHGGxhRwNpMs4CA@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Hi David,<br>I want to let you know that this issue has been fixed in the<br>development version of NCL. Let us know if you'd like to try it out on<br>yellowstone.<br> -dave<br><br>On Tue, May 26, 2015 at 2:11 PM, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br>> Hi Dave,<br>><br>> Thanks for providing the script.<br>><br>> I was able to reproduce your results with NCL 6.2.1, NCL 6.3.0 (both intel<br>> and gcc versions) and a test version of NCL, which is our development<br>> version. I've created a ticket, NCL-2223.<br>><br>> If/when we get this working, I can point you to a development version that<br>> you can use on yellowstone.<br>><br>> --Mary<br>><br>><br>><br>> On Tue, May 26, 2015 at 11:37 AM, David B. Reusch <<a href="mailto:dreusch@ees.nmt.edu" target="_blank">dreusch@ees.nmt.edu</a>><br>> wrote:<br>>><br>>> I seem to have found an NCL seg fault when copying global attributes with<br>>> fileattdef from CESM Large Ensemble (LE) files. This was part of a larger<br>>> script I've been using to regrid for multiple years. The attached script<br>>> just does the fileattdef step and it works on at least one of my other,<br>>> non-CESM LE files. I've tried it on multiple CESM LE files with the same<br>>> results. Copying the attributes individually works so I'm assuming it's<br>>> related to doing all the attributes together.<br>>><br>>> This is on yellowstone with NCL 6.3.<br>>><br>>> My temporary workaround is to just comment out this step so that I can<br>>> continue my file processing. Since that means losing global metadata, a<br>>> better solution/fix would be preferred.<br>>><br>>> Thanks,<br>>> Dave<br>>><br>>> --<br>>> Associate Research Professor of Climatology<br>>> Dept of Earth and Environmental Science<br>>> MSEC 304; 801 Leroy Place<br>>> New Mexico Tech<br>>> Socorro, NM 87801<br>>><br>>><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>><br>><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><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 3 Jun 2015 11:40:14 -0400<br>From: Alan Brammer <<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>><br>Subject: Re: [ncl-talk] drawing RMS semi-circles in Taylor diagram<br>To: LI Qi <<a href="mailto:liqi123sh@qq.com" target="_blank">liqi123sh@qq.com</a>><br>Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <CA+V766SnYssWRYVuoSJeQcyZz7MBYivwjTcKzBwO_=<a href="mailto:tz67qnCg@mail.gmail.com" target="_blank">tz67qnCg@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>I would say you want to edit the constants on the below lines. I'm not<br>sure how these were obtained though, trial and error might be the simplest<br>way.<br>These are just restricting how long the line is, with your base plot I<br>would think that even your 3rd circle can span the full 180-360. Increase<br>0.77 and 0.61 until the circles reach a respective edge.<br> n3 = floattointeger( 0.77*npts )<br> n4 = floattointeger( 0.61*npts )<br><br><br>Good luck.<br><br>On 3 June 2015 at 09:43, LI Qi <<a href="mailto:liqi123sh@qq.com" target="_blank">liqi123sh@qq.com</a>> wrote:<br><br>> Dear NCL developers,<br>><br>> I use the script "taylor_diagram.ncl" to draw Taylor diagram. I extend the<br>> outer curve from the original 1.65 to 1.75 to fit my data, but it seems<br>> that the parameters w.r.t. RMS semi-circles need also be changed<br>> accordingly (as is shown below, the semi-circles are incomplete).<br>> The issue is, I have no idea how to change it.<br>><br>><br>> Below is a snippet of the script, which I guess is related to the RMS<br>> semi-circles<br>> Any hints about how to change the parameters would be sincerely<br>> appreciated!<br>><br>> Best,<br>> Qi<br>><br>> dx = 0.25<br>> ncon = 4 ; 0.75, 0.50, 0.25,<br>> 0.0<br>> npts = 100 ; arbitrary<br>> ang = fspan(180,360,npts)*rad<br>><br>> dum9 = new(ncon,graphic)<br>><br>> do n=1,ncon<br>> rr = n*dx ; radius from 1.0 [OBS] abscissa<br>> xx = 1. + rr*cos(ang)<br>> yy = fabs( rr*sin(ang) )<br>> if (n.le.2) then<br>> dum9(n-1) = gsn_add_polyline(wks,taylor,xx,yy,respl)<br>> end if<br>> if (n.eq.3) then<br>> n3 = floattointeger( 0.77*npts )<br>> dum9(n-1) =<br>> gsn_add_polyline(wks,taylor,xx(0:n3),yy(0:n3),respl)<br>> end if<br>> if (n.eq.4) then<br>> n4 = floattointeger( 0.61*npts )<br>> dum9(n-1) =<br>> gsn_add_polyline(wks,taylor,xx(0:n4),yy(0:n4),respl)<br>> end if<br>> end do<br>><br>> _______________________________________________<br>> ncl-talk mailing list<br>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/4b3ede87/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/4b3ede87/attachment-0001.html </a><br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: <a href="mailto:2E05F4FE@0FC9496C.9F046F55" target="_blank">2E05F4FE@0FC9496C.9F046F55</a><br>Type: application/octet-stream<br>Size: 56453 bytes<br>Desc: not available<br>Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/4b3ede87/attachment-0001.obj" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/4b3ede87/attachment-0001.obj </a><br><br>------------------------------<br><br>Message: 5<br>Date: Wed, 3 Jun 2015 10:12:41 -0600<br>From: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>><br>Subject: Re: [ncl-talk] functions handling input of unknown dimension<br>To: Walter Kolczynski <<a href="mailto:walter.kolczynski@noaa.gov" target="_blank">walter.kolczynski@noaa.gov</a>><br>Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <<a href="mailto:CAOF1d_6MzNWNh_-eycynEZvbehBF8Z2SjJjsOAv6ND-kRbx_Lw@mail.gmail.com" target="_blank">CAOF1d_6MzNWNh_-eycynEZvbehBF8Z2SjJjsOAv6ND-kRbx_Lw@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Will, Walt<br><br>To my knowledge there is no 'simple' way to do what Will originally posted.<br><br>Walt's 'flattening' suggestion would be 'clean' if it is general and hidden<br>with a simple interface. However, I am not sure that it would be more<br>efficient. More memory would be required for the 'flat' array.<br>--<br><br>re: WH's comment: "particularly 'clean' or efficient code"<br><br>The nested 'if' approach is certainly cumbersome<br><br>if (rankx.eq.1) then<br> ...<br>end if<br>if (rankx.eq.2) then<br> ...<br>end if<br>if (rankx.eq.3) then<br> ...<br>end if<br>if (rankx.eq.4) then<br> ...<br>end if<br><br>but I don't think it is particularly inefficient.<br><br><br>On Tue, Jun 2, 2015 at 11:09 AM, Walter Kolczynski <<br><a href="mailto:walter.kolczynski@noaa.gov" target="_blank">walter.kolczynski@noaa.gov</a>> wrote:<br><br>> Will,<br>><br>> Depending on what you are doing, you might be able to flatten into a lower<br>> dimensional array, do whatever operation, then convert back. I've attached<br>> an example to get you started: it returns a random sample in the left-most<br>> dimension of any 2+ dimensional array. To run it just go into an<br>> interactive NCL session, load the file, and run the test procedure:<br>><br>> [<a href="mailto:user@machine" target="_blank">user@machine</a> ~]$ ncl<br>> Copyright (C) 1995-2014 - All Rights Reserved<br>> University Corporation for Atmospheric Research<br>> NCAR Command Language Version 6.2.0<br>> The use of this software is governed by a License Agreement.<br>> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/ </a>for more details.<br>> ncl 0> load "takeSample.ncl"<br>> ncl 1> test_takeSample()<br>><br>> - Walter<br>><br>><br>> On 02-Jun-15 02:43, Will Hobbs wrote:<br>><br>> Hi all<br>><br>> I wonder if anyone has any suggestions for a generic way of writing<br>> functions that deal with input/output arrays which may have different<br>> numbers of dimensions, e.g.<br>><br>> function generic_example(input:numeric)<br>><br>> begin<br>> output = some_subset_of_(input)<br>><br>> return(output)<br>> end<br>><br>> where input/output might be 1, 2, 3, 4 or more dimensions, and so a<br>> different line is needed to do the subsetting step.<br>><br>> At the moment I just use nested 'if' statements based on the rank of the<br>> array (where rank is the number of dimensions, i.e. dimsizes(dim<br>> sizes(input)), and this works fine. But, it does not make for particularly<br>> 'clean' or efficient code, so I wonder if anyone has any nicer ways of<br>> doing this.<br>><br>> Many thanks<br>><br>> Will<br>><br>><br>><br>> University of Tasmania Electronic Communications Policy (December, 2014).<br>> This email is confidential, and is for the intended recipient only.<br>> Access, disclosure, copying, distribution, or reliance on any of it by<br>> anyone outside the intended recipient organisation is prohibited and may be<br>> a criminal offence. Please delete if obtained in error and email<br>> confirmation to the sender. The views expressed in this email are not<br>> necessarily the views of the University of Tasmania, unless clearly<br>> intended otherwise.<br>><br>><br>> _______________________________________________<br>> ncl-talk mailing <a href="mailto:listncl-talk@ucar.edu" target="_blank">listncl-talk@ucar.edu</a><br>> List instructions, subscriber options, unsubscribe:<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>><br>><br>> --<br>> Walter Kolczynski, Jr.<br>> Global Ensemble Team<br>> NOAA/NWS/NCEP/EMC (via I.M. Systems Group)<a href="tel:%28301%29%20683-3781" value="+13016833781" target="_blank">(301) 683-3781</a><br>><br>><br>> _______________________________________________<br>> ncl-talk mailing list<br>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/92a38701/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/92a38701/attachment-0001.html </a><br><br>------------------------------<br><br>Message: 6<br>Date: Wed, 3 Jun 2015 11:33:33 -0600<br>From: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>><br>Subject: Re: [ncl-talk] Panel Plot<br>To: Amadou Coulibaly <<a href="mailto:mpapin24@gmail.com" target="_blank">mpapin24@gmail.com</a>><br>Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <CAOF1d_62pZAVQ=MtHYNicnQdtdatfet_kKH7yee363+wkTM_+<a href="mailto:w@mail.gmail.com" target="_blank">w@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Looking at scripts can be a tedious and time consuming task.<br>--<br><br>Your code<br><br> infile = addfile("/home/amadou/NCL/<a href="http://all_new.nc" target="_blank">all_new.nc</a>", "r")<br> temp = infile->air_temperature<br> Temp = temp(256392:258575,7) ; for 5 years<br>(2012_JFMAMJ)<br> time = infile->time<br> Time = time(256392:258575)<br><br> index = ind(Temp(:) .ne. <a href="mailto:Temp@_FillValue" target="_blank">Temp@_FillValue</a>) ; indices of<br>Temp without missing values<br> printVarSummary(index)<br> Time0 = time(256444:258575)<br> Temp1 = new((/2132/), float)<br> Temp1 = Temp(index)<br><br>[snip]<br><br>[1] You can **not** use the following to check for missing values. These<br>can *only* be checked via the 'ismissing' function.<br><br> index = ind(Temp(:) .ne. <a href="mailto:Temp@_FillValue" target="_blank">Temp@_FillValue</a>) ; indices<br>of Temp without missing values<br><br> Use<br><br> index = ind(.not.ismissing(Temp)) ; indices of Temp without missing<br>values<br><br> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ismissing.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/ismissing.shtml</a><br> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml</a><br><br>[2]<br>As I mentioned to you in a previous ncl-talk response, you can not just<br>eliminate missing values and perform a wavelet analysis on the 'good'<br>values. Omitting values will result in 'numbers' but they are not the<br>'correct numbers'. Omitting values results in spectral gaps. If you have<br>(say) hourly values and very short spans with missing values you could<br>perform a linear interpolation. This will affect the spectra but likely not<br>in any substantive manner.<br><br>[3]<br>You have two different sets of index values: 256392:258575 and<br>256444:258575 ... this is likely the source of your plotting issue.<br><br>Good programming practice suggest that you use variables rather than hard<br>wired constants.<br><br> tStrt = 256392<br> tLast = 258575<br><br>and use these<br><br> temp = infile->air_temperature<br> Temp = temp(tStrt:tLast,7) ; for 5 years<br>(2012_JFMAMJ)<br> time = infile->time<br> Time = time(tStrt:tLast)<br><br>Actually .... better<br><br> Temp = infile->air_temperature(tStrt:tLast,7)<br> printVarSummary(Temp)<br><br><br><br><br><br><br><br><br><br>On Wed, Jun 3, 2015 at 6:00 AM, Amadou Coulibaly <<a href="mailto:mpapin24@gmail.com" target="_blank">mpapin24@gmail.com</a>> wrote:<br><br>> Dear NCL users,<br>><br>> I tried to do a panel plot between "Wavelet Power Spectrum" and "Timesires"<br>> from hourly temperature data of April-May-June. But this data contained 61<br>> hours of missing values that I cancelled. When I plotted my data, I<br>> remarked that the x-axis on the wavelet power spectrum does not match the<br>> timeserie one.<br>><br>> What is wrong with my script?<br>><br>> Please find attached my script and my plot.<br>><br>> Best<br>> --<br>> * COULIBALY AMADOU *<br>> PhD Student on West African Climate System (WACS)<br>> FUTA - Federal University of Technology of Akure, Nigeria<br>><br>> *Visiting Student - *<br>> *University of Cologne, Germany**Institute of Geophysics and Meteorology*<br>> Pohligstr. 3 / Office 3.102<br>> D-50969 K?ln<br>><br>> *Project*: WASCAL (West African Science Service Centre on Climate Change<br>> and Adapted Land Use)<br>> Phone:<a href="tel:%28%2B234%29%20810%20795%202836" value="+2348107952836" target="_blank">(+234) 810 795 2836</a> /<a href="tel:%28%2B223%29%2065%2067%2027%2057" value="+22365672757" target="_blank">(+223) 65 67 27 57</a> /<a href="tel:%28%2B226%29%2064%2057%2037%2027" value="+22664573727" target="_blank">(+226) 64 57 37 27</a> /+49<br>> 15218352574<br>><br>> E-mail: <a href="mailto:mpapin24@gmail.com" target="_blank">mpapin24@gmail.com</a> / <a href="mailto:coulibalya68@yahoo.com" target="_blank">coulibalya68@yahoo.com</a><br>><br>> "*The time is always right to do right": Nelson Mandela*<br>><br>> *"Character is like a tree and reputation like a shadow. The shadow is<br>> what we think of it; the tree is the real thing" : Abraham Lincoln*<br>><br>> *"Do what you can, with what you have, where you are" Theodore Roosevelt*<br>><br>><br>><br>><br>><br>><br>> _______________________________________________<br>> ncl-talk mailing list<br>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/2ea068de/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/2ea068de/attachment-0001.html </a><br><br>------------------------------<br><br>_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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><br>End of ncl-talk Digest, Vol 139, Issue 5<br>****************************************<br><br><br></div> </div> </div> </div></div></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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>