<div dir="ltr"><h2><font><span style="font-weight:normal">If you have NCL Version 6.1.1 (February 4, 2013) you could replace the <br></span></font></h2><p><br></p><p>    time_index(..) = ...<br></p><p>          :</p><p>    delete(time_index)</p><p><br></p><p>==============</p><p>with the reassignment operator</p><p>   time_index(..) := ...</p><p><br></p><p>
<b>New reassignment operator</b></p><p>

There&#39;s a new operator, &quot;:=&quot;, that allows you to reassign variables
without having to delete them first.<br>
For example:
</p><p>

</p><pre>   x = fspan(-10.5,20.8,0.1)    ; array of floats
;  x = &quot;This is a string&quot;       ; this won&#39;t work
   x <b>:=</b> &quot;This is a string&quot;      ; single string
</pre>
<p>

This operator works for attributes as well, but not for coordinate arrays.
</p><p>   <br></p>
<h3><br></h3></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 29, 2014 at 1:46 PM, Yuqiang Zhang <span dir="ltr">&lt;<a href="mailto:yuqiangzhang.thu@gmail.com" target="_blank">yuqiangzhang.thu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="color:#1f497d">Hi Amadou,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Delete the variable of “timeindex” (not able to see your script, but should be in line 159 and 234) in the end of each loop by type “delete(timeindex)”. The reason you have this error message is that after the first loop, your data sizes of “timeindex” will be different for month “Feb” and “Mar”, as they have different days for a month. <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Hope that works. <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Yuqiang<u></u><u></u></span></p><p class="MsoNormal"><span style="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;">From:</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>On Behalf Of </b>Amadou Coulibaly<br><b>Sent:</b> Monday, September 29, 2014 2:28 PM<br><b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br><b>Subject:</b> [ncl-talk] Seasonal Variation of Hodogragh<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">Hi NCL Users<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">I still have some errors messages after applying the modifications suggested by Dennis Shea. Now I&#39;m able to read the &quot;timeindex&quot; after applying this command below:<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span><span style="font-size:8.5pt;font-family:&quot;Menlo&quot;,&quot;serif&quot;;color:#500050;background:#fff9cd">iconv -f UTF-8 -t ascii//TRANSLIT panel_plot_mod0.ncl &gt; test.ncl </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">But it&#39;s till showing the following error messages:<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red">fatal:Dimension sizes of left hand side and right hand side of assignment do not match</span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 5660 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl</span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red"> </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 159 in file test1.ncl </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red"> </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:red">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 234 in file test1.ncl </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">Please, who can help me to solve this issue?</span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">Find attached the ncl script corresponding. </span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">NB: My idea is to plot the Hodogragh for February, March, and April (Seasonal Hodogragh) like asked by Dennis Shea in one of her comment below:</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black;background:#eeeeee"> </span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;background:#eeeeee">Based on your written words, maybe the following is what you want</span><u></u><u></u></p></div><p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;background:#eeeeee"><br>    timeindex = ind(times(:,0).eq.2010 .and. \<br>                             (times(:,1) .ge. 2 .and. times(:,1).le.4) .and. times(:,2) .eq. 12) </span><u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;background:#eeeeee">    print(timeindex)</span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">But this time, I just want the indices for February, March and April 2010 like this: without 12Z</span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;background:#eeeeee">timeindex = ind(times(:,0).eq.2010 .and. \</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br><span style="background:#eeeeee">                             (times(:,1) .ge. 2 .and. times(:,1).le.4) </span></span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;;color:black">Best</span><span style="font-family:&quot;Courier New&quot;"><u></u><u></u></span></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal"><b><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"> COULIBALY   AMADOU   </span></b><br><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">PhD  Student  on  West  African  Climate  System (WACS)</span><br><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">FUTA</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"> - </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">F</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">ederal  </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">U</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">niversity  of  </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">T</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">echnology of </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">A</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">kure, Nigeria</span><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><b><i><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4c1130">Visiting Student - </span></i></b><b><i><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4c1130">University of Cologne, Germany</span><span style="color:#4c1130"><br></span></i></b><i><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4c1130">Institute of Geophysics and Meteorology</span></i><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4c1130">Pohligstr. 3 / Office 3.102</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#4c1130">D-50969 Köln</span><u></u><u></u></p></div></div></div><div><p class="MsoNormal"><span style="color:#500050"><u></u> <u></u></span></p></div><p class="MsoNormal"><u><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">Project</span></u><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">: </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">WASCAL</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"> (</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">W</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">est </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">A</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">frican </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">S</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">cience </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">S</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">ervice </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">C</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">entre on </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">C</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">limate </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">C</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">hange and </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">A</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">dapted </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue">L</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">and Use) </span><br><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">Phone:<a href="tel:%28%2B234%29%20810%20795%202836" value="+2348107952836" target="_blank">(+234) 810 795 2836</a> </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:red">/</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"><a href="tel:%28%2B223%29%2065%2067%2027%2057" value="+22365672757" target="_blank">(+223) 65 67 27 57</a> </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:red">/</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"><a href="tel:%28%2B226%29%2064%2057%2037%2027" value="+22664573727" target="_blank">(+226) 64 57 37 27</a> </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:red">/</span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066"><a href="tel:%2B49%2015218352574" value="+4915218352574" target="_blank">+49 15218352574</a></span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#000066">E-mail: <a href="mailto:mpapin24@gmail.com" target="_blank">mpapin24@gmail.com</a></span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#222222"> </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:red">/ </span><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:blue"><a href="mailto:coulibalya68@yahoo.com" target="_blank">coulibalya68@yahoo.com</a> </span><u></u><u></u></p></div><div><p><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#ff9900">&quot;<i>The time is always right to do right&quot;: <b>Nelson Mandela</b></i></span><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p><p><i><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#ff9900">&quot;Character is like a tree and reputation like a shadow.  The shadow is what we think of it; the tree is the real thing&quot; : <b>Abraham Lincoln</b></span></i><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p><p><i><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#ff9900">&quot;Do what you can, with what you have, where you are&quot; <b>Theodore Roosevelt</b></span></i><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p><p><b><i><span style="color:#000066"> </span></i></b><u></u><u></u></p><p><b><span style="font-size:13.5pt;color:#000066"> </span></b><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></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>