<div dir="ltr"><div><div>[1] Your  comment &quot;find the date 2010-11-01&quot; is totally inconsistent with what you<br></div>      do on the next line(s).<br><br></div>[2] Always look at your data.<br><br><div><div><div>   ; convert the time axis<br>      times = cd_calendar(infile-&gt;time, 0)<br><br>     print(times(:,0)+&quot;  &quot;+times(:,1)+&quot;  &quot;+times(:,2)+&quot;  &quot;+times(:,3))      ;  &lt;== yyyy, mm, dd, hh<br><br>    ; find the date 2010-11-01<br>      timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2)  ; &lt;== find indices for February 2010 only<br>    <br>    ; timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2 .and. times(:,2) .eq. 12)<br><br></div><div>If you are looking for Feb 2010 12Z only, the above should be:<br></div><div>     timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2 .and. times(:,3) .eq. 12)   ; 12Z data for Feb 2010<br><br>======<br></div><div>Based on your written words, maybe the following is what you want<br><br>     timeindex = ind(times(:,0).eq.2010 .and. \<br>                             (times(:,1) .ge. 2 .and. times(:,1).le.4) .and. times(:,3) .eq. 12) <br></div><div>    print(timeindex)<br><br>======<br></div><div>Please respond to ncl-talk (if necessary). If responding, no personal salutation should be used.  THX<br><br></div><div>Good luck<br></div><div>   <br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 9:22 AM, Amadou Coulibaly <span dir="ltr">&lt;<a href="mailto:mpapin24@gmail.com" target="_blank">mpapin24@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 dir="ltr"><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace;font-size:small"><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;font-family:&#39;Courier New&#39;">Hello NCL Users</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;font-family:&#39;Courier New&#39;"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;font-family:&#39;Courier New&#39;">I&#39;m trying to plot the
&quot;Seasonal variation of Hodogragh&quot;, I have already plot &quot;hourly
variation of Hodogragh&quot; for one day. But when I try the seasonal one, it
shows me those message errors:</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;font-family:&#39;Courier New&#39;"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">fatal:Dimension sizes
of left hand side and right hand side of assignment do not match</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)"><br>
</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">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></i></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">
<br>
</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">fatal:[&quot;Execute.c&quot;:7743]:Execute:
Error occurred at or near line 159 in file panel_plot_mod.ncl</span></i></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">
<br>
</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)">fatal:[&quot;Execute.c&quot;:7743]:Execute:
Error occurred at or near line 222 in file panel_plot_mod.ncl</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><i><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(255,119,0)"><br>
</span></i><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black">So, who can help me to
solve this issue, allowing me to plot the Hodogragh for 3 months (February,
March, April for instance). Or monthly variation of Hodogragh.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black">When I used line 203 of this script, It works, but line 202 doesn&#39;t work (timeindex).</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black">See my script in
attached file.</span><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black"><br>
<br>
</span><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:13.5pt;font-family:&#39;Times New Roman&#39;,serif;color:black">Best regards</span><span style="font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class="MsoNormal"><span><i><span style="font-size:13.5pt;line-height:115%;color:rgb(255,119,0);background-image:initial;background-repeat:initial"> </span></i></span></p></div><div><br></div>-- <br><div dir="ltr"><b style="font-size:small;font-family:tahoma,sans-serif"><font color="#000066"> </font><font color="#000066">COULIBALY   </font><font color="#000066">AMADOU   </font></b><br><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small">PhD  Student  on  West  African  Climate  System (WACS)</span><br><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"> - </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">ederal  </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">niversity  of  </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">echnology of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">kure, Nigeria</font><div><font color="#000066" face="tahoma, sans-serif"><br></font><div><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><i style="font-weight:bold">Visiting Student - </i></span><i style="font-weight:bold"><span style="font-family:arial,helvetica,sans-serif"><i><font size="1"><span style="font-size:13px">University of Cologne, Germany</span></font></i></span><br></i><i><span style="font-family:arial,helvetica,sans-serif">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif"><br></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><font size="1">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><font size="1">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)"><i style="color:rgb(34,34,34);font-family:&#39;bookman old style&#39;,&#39;new york&#39;,times,serif"><font size="1"><span style="color:rgb(0,0,127)"><span style="font-size:13px"><br></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)"><u>Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)"> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">and Use) </span><br><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066">Phone:<a href="tel:%28%2B234%29%20810%20795%202836" value="+2348107952836" target="_blank">(+234) 810 795 2836</a> </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066"><a href="tel:%28%2B223%29%2065%2067%2027%2057" value="+22365672757" target="_blank">(+223) 65 67 27 57</a> </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066"><a href="tel:%28%2B226%29%2064%2057%2037%2027" value="+22664573727" target="_blank">(+226) 64 57 37 27</a> </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"><span style="color:rgb(34,34,34)"></span><font color="#ff0000">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066"><a href="tel:%2B49%2015218352574" value="+4915218352574" target="_blank">+49 15218352574</a><br></font><div><p><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"></font></p><div style="text-align:left"><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"><font color="#000066">E-mail: </font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)"> </span><font color="#ff0000">/ </font><span style="color:rgb(0,0,255)"><a href="mailto:coulibalya68@yahoo.com" target="_blank">coulibalya68@yahoo.com</a> </span></font></div><p></p></div><div><font face="verdana,sans-serif"><p><font color="#ff9900">&quot;<i>The time is always right to do right&quot;: <b>Nelson Mandela</b></i></font></p><p><i><font 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></font></i></p><p><i><font color="#ff9900">&quot;Do what you can, with what you have, where you are&quot; <b>Theodore Roosevelt</b></font></i></p></font><p><b><font color="#000066"><i> </i></font></b></p><p><b><font color="#000066" size="4"> </font></b></p><div> </div></div></div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>