<html><head></head><body><div style="color:#000; background-color:#fff; font-family:標楷體, dfkai-sb;font-size:16px"><div id="yui_3_16_0_1_1490861924171_3853"><span>Thank you Adam.</span></div><div id="yui_3_16_0_1_1490861924171_3853"><span><br></span></div><div id="yui_3_16_0_1_1490861924171_3853"><span>The current version of the script in question is attached.</span></div><div id="yui_3_16_0_1_1490861924171_3853"><span><br></span></div><div id="yui_3_16_0_1_1490861924171_3853"><span>Thank you. Najib</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: 標楷體, dfkai-sb; 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 Wednesday, March 29, 2017 3:11 PM, Adam Phillips <asphilli@ucar.edu> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv8614662566"><div><div></div><div>Hi Najib,</div><div>Please send the current version of your script to ncl-talk so all can see and offer assistance.</div><div>Adam</div><div class="yiv8614662566yqt5002312299" id="yiv8614662566yqt16077"><div><br clear="none">On Mar 29, 2017, at 7:40 AM, Najib Yusuf <<a rel="nofollow" shape="rect" ymailto="mailto:najibgal@yahoo.com" target="_blank" href="mailto:najibgal@yahoo.com">najibgal@yahoo.com</a>> wrote:<br clear="none"><br clear="none"></div><blockquote type="cite"><div><div style="color:#000;background-color:#fff;font-family:標楷體, dfkai-sb;font-size:16px;"><div id="yiv8614662566"><div id="yiv8614662566yui_3_16_0_1_1490786328588_6449"><div id="yiv8614662566yui_3_16_0_1_1490786328588_6448" style="color:#000;background-color:#fff;font-family:標楷體, dfkai-sb;font-size:16px;"><div id="yiv8614662566yui_3_16_0_1_1490774432529_10854"><span></span></div> <div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none">Dear all,</div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447">Thank you Adam for the help. I change it as you pointed out but I still got a single plot.I don't understand where the problem might be. Please anyone help.Details in the previous messages.</div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447">Thank you.</div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv8614662566qtdSeparateBR" id="yiv8614662566yui_3_16_0_1_1490786328588_6447">Najib</div></div></div></div><div> <div style="font-family:標楷體, dfkai-sb;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv8614662566qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv8614662566yqt2597056605" id="yiv8614662566yqtfd37598"><div dir="ltr"><font size="2" face="Arial"> On Tuesday, March 28, 2017 8:55 PM, Adam Phillips <<a rel="nofollow" shape="rect" ymailto="mailto:asphilli@ucar.edu" target="_blank" href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="yiv8614662566y_msg_container"><div id="yiv8614662566"><div><div dir="ltr">Hi Najib,<div>I see the issue. I did not see from your original ncl-talk posting that your n do loop is closed rather quickly between lines 26 and 28:</div><div><div>do n= 0,nfiles-1</div><div> nfiles = n</div><div>end do</div></div><div><br clear="none"></div><div>A quick test shows that that syntax will result in nfiles = 0 and then the do loop concludes. I think what you want is to change your coding from this:</div><div><br clear="none"></div><div><div>do n= 0,nfiles-1</div><div> nfiles = n</div><div>end do</div><div>print(files(n))</div><div>z1 = asciiread(files(n),(/nday+1/),"string")</div><div>printVarSummary(z1)</div></div><div>....</div><div>wks = gsn_open_wks("png","AOT_550")</div><div>....</div><div><div>plot = gsn_csm_xy(wks, x, AOT_550, res)</div><div>draw(plot)</div><div>frame(wks)</div><div>end </div></div><div><br clear="none"></div><div>to this:<br clear="none"><br clear="none"></div><div>do n= 0,nfiles-1<br clear="none"></div><div><div> print(files(n))</div><div> z1 = asciiread(files(n),(/nday+1/),"string")</div><div> printVarSummary(z1)</div><div><br clear="none"></div><div>....</div><div><br clear="none"></div><div> wks = gsn_open_wks("png","AOT_550_"+n)</div><div><br clear="none"></div><div>....</div><div><br clear="none"></div><div> plot = gsn_csm_xy(wks, x, AOT_550, res) </div><div> draw(plot)</div><div> frame(wks)<br clear="none"></div></div><div>end do</div><div><br clear="none"></div><div>If after you implemented the above you are still having problems respond to the ncl-talk list.</div><div>Adam</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div><div class="yiv8614662566gmail_extra"><br clear="none"><div class="yiv8614662566yqt8679429756" id="yiv8614662566yqt20144"><div class="yiv8614662566gmail_quote">On Sun, Mar 26, 2017 at 12:55 AM, Najib Yusuf <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:najibgal@yahoo.com" target="_blank" href="mailto:najibgal@yahoo.com">najibgal@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv8614662566gmail_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 id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5178">Dear ncl,</span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5643">I effected the correction but still getting a single plot.</span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5690">Kindly assist.</span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span>Thank you.</span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span>Najib</span></div> <div class="yiv8614662566m_393602492264433431qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv8614662566m_393602492264433431yahoo_quoted" 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 Friday, March 24, 2017 6:02 PM, Adam Phillips <<a rel="nofollow" shape="rect" ymailto="mailto:asphilli@ucar.edu" target="_blank" href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="yiv8614662566m_393602492264433431y_msg_container"><div id="yiv8614662566m_393602492264433431yiv4134499333"><div><div dir="ltr">Hi Najib,<div>I think your script is close. You are redefining the workstation each time through your n do loop. Thus, each time through the do loop the output png file gets overwritten. Change this line:</div><div>wks = gsn_open_wks("png","AOT_550")</div><div>to this:</div><div>wks = gsn_open_wks("png","AOT_550_"+ n)<br clear="none"></div><div><br clear="none"></div><div>and I think you will get what you want.</div><div><br clear="none"></div><div>I hope that helps. If not, or if you have further questions, please respond to the ncl-talk email list and not to me personally.</div><div>Adam</div><div><br clear="none"></div></div><div class="yiv8614662566m_393602492264433431yiv4134499333gmail_extra"><br clear="none"><div class="yiv8614662566m_393602492264433431yiv4134499333gmail_quote">On Fri, Mar 24, 2017 at 3:47 AM, Najib Yusuf <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:najibgal@yahoo.com" target="_blank" href="mailto:najibgal@yahoo.com">najibgal@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv8614662566m_393602492264433431yiv4134499333gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8614662566m_393602492264433431yiv4134499333yqt8763043462" id="yiv8614662566m_393602492264433431yiv4134499333yqt82981"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Dear ncl-talk,</div><div id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">I am trying as I'm still at the initial stage learning ncl going through user-guides tutorials etc. I want to plot multiple time series with the parametre from different files (AOT_550_2005 to AOT_550_2013). I have writing the codes (see attached file) but when I run it I got only one plot of AOT_550_2005 not with the remaining years.</div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Kindly assist on how the remaining years will appear on the plot.I also tried looping but the errors are getting much so I live it this way since there is no error.</div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Thank you</div><span class="yiv8614662566m_393602492264433431yiv4134499333HOEnZb"><font color="#888888"></font></span><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Najib</div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><span class="yiv8614662566HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div class="yiv8614662566m_393602492264433431yiv4134499333gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br clear="none"></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br clear="none"></font></span></div></div><div><span><font color="#888888"><a rel="nofollow" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli/">www.cgd.ucar.edu/staff/ asphilli/</a> </font></span><span><font color="#888888"><a rel="nofollow" shape="rect" href="">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br clear="none"></font></span><div><span><font color="#888888"><a rel="nofollow" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></blockquote></div></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv8614662566gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br clear="none"></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br clear="none"></font></span></div></div><div><span><font color="#888888"><a rel="nofollow" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli/">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br clear="none"></font></span><div><span><font color="#888888"><a rel="nofollow" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div><br clear="none"><br clear="none"></div> </div></div><div class="yiv8614662566yqt2597056605" id="yiv8614662566yqtfd44371"> </div></div><div class="yiv8614662566yqt2597056605" id="yiv8614662566yqtfd65492"> </div></div></div></div></blockquote></div><blockquote type="cite"><div><span>_______________________________________________</span><br clear="none"><span>ncl-talk mailing list</span><br clear="none"><span><a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br clear="none"><span>List instructions, subscriber options, unsubscribe:</span><br clear="none"><span><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br clear="none"></div></blockquote></div></div><br><br></div> </div> </div> </div></div></body></html>