<html><head></head><body><div style="color:#000; background-color:#fff; font-family:標楷體, dfkai-sb;font-size:16px"><div id="yui_3_16_0_ym19_1_1491035414830_5997"><span id="yui_3_16_0_ym19_1_1491035414830_6036">Thank you Adam.I did sent as you advised.</span></div><div id="yui_3_16_0_ym19_1_1491035414830_5997"><span><br></span></div><div id="yui_3_16_0_ym19_1_1491035414830_5997"><span>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 Friday, March 31, 2017 7:08 PM, Adam Phillips <asphilli@ucar.edu> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv5187531392"><div><div dir="ltr">Hi Najib,<div>I have looked at your script and read your original query a few times now and I'm still not clear as to what you are trying to accomplish. If you could provide a more detailed explanation about what you are trying to accomplish I think that would help the ncl-talk community in assisting you.</div><div>Adam </div></div><div class="yiv5187531392gmail_extra"><br clear="none"><div class="yiv5187531392gmail_quote">On Thu, Mar 30, 2017 at 2:43 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="yiv5187531392gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv5187531392yqt0176618177" id="yiv5187531392yqt98053"><div><div style="color:#000;background-color:#fff;font-family:標楷體, dfkai-sb;font-size:16px;"><div id="yiv5187531392m_907441327281349673yui_3_16_0_1_1490861924171_3853"><span>Thank you Adam.</span></div><div id="yiv5187531392m_907441327281349673yui_3_16_0_1_1490861924171_3853"><span><br clear="none"></span></div><div id="yiv5187531392m_907441327281349673yui_3_16_0_1_1490861924171_3853"><span>The current version of the script in question is attached.</span></div><div id="yiv5187531392m_907441327281349673yui_3_16_0_1_1490861924171_3853"><span><br clear="none"></span></div><div id="yiv5187531392m_907441327281349673yui_3_16_0_1_1490861924171_3853"><span>Thank you. Najib</span></div> <div class="yiv5187531392m_907441327281349673qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yahoo_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 <<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="yiv5187531392m_907441327281349673y_msg_container"><div id="yiv5187531392m_907441327281349673yiv8614662566"><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="yiv5187531392m_907441327281349673yiv8614662566yqt5002312299" id="yiv5187531392m_907441327281349673yiv8614662566yqt16077"><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="yiv5187531392m_907441327281349673yiv8614662566"><div id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6449"><div id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6448" style="color:#000;background-color:#fff;font-family:標楷體, dfkai-sb;font-size:16px;"><div id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490774432529_10854"><span></span></div> <div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none">Dear all,</div><div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_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="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6447">Thank you.</div><div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_3_16_0_1_1490786328588_6447"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR" id="yiv5187531392m_907441327281349673yiv8614662566yui_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="yiv5187531392m_907441327281349673yiv8614662566qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yiv8614662566yqt2597056605" id="yiv5187531392m_907441327281349673yiv8614662566yqtfd37598"><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="yiv5187531392m_907441327281349673yiv8614662566y_msg_container"><div id="yiv5187531392m_907441327281349673yiv8614662566"><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="yiv5187531392m_907441327281349673yiv8614662566gmail_extra"><br clear="none"><div class="yiv5187531392m_907441327281349673yiv8614662566yqt8679429756" id="yiv5187531392m_907441327281349673yiv8614662566yqt20144"><div class="yiv5187531392m_907441327281349673yiv8614662566gmail_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="yiv5187531392m_907441327281349673yiv8614662566gmail_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5178">Dear ncl,</span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5643">I effected the correction but still getting a single plot.</span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5690">Kindly assist.</span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span>Thank you.</span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span><br clear="none"></span></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yui_3_16_0_1_1490506661063_5128"><span>Najib</span></div> <div class="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431y_msg_container"><div id="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333gmail_extra"><br clear="none"><div class="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333yqt8763043462" id="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Dear ncl-talk,</div><div id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823">Thank you</div><span class="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333HOEnZb"><font color="#888888"></font></span><div dir="ltr" id="yiv5187531392m_907441327281349673yiv8614662566m_393602492264433431yiv4134499333m_-2931145036489157063yui_3_16_0_ym19_1_1490016786709_131823"><br clear="none"></div><div dir="ltr" id="yiv5187531392m_907441327281349673yiv8614662566m_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="yiv5187531392m_907441327281349673yiv8614662566HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><span class="yiv5187531392HOEnZb"><font color="#888888"></font></span><div><br clear="none"></div>-- <br clear="none"><div class="yiv5187531392m_907441327281349673yiv8614662566m_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><span class="yiv5187531392HOEnZb"><font color="#888888"><br clear="none"><br clear="none"></font></span></div><span class="yiv5187531392HOEnZb"><font color="#888888"> </font></span></div><span class="yiv5187531392HOEnZb"><font color="#888888"> </font></span></div><span class="yiv5187531392HOEnZb"><font color="#888888"> </font></span></div></div></div></blockquote></div></div><span class="yiv5187531392HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div class="yiv5187531392m_907441327281349673yiv8614662566gmail_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><span class="yiv5187531392HOEnZb"><font color="#888888"><br clear="none"><br clear="none"></font></span></div><span class="yiv5187531392HOEnZb"><font color="#888888"> </font></span></div></div><span class="yiv5187531392HOEnZb"><font color="#888888"></font></span><div class="yiv5187531392m_907441327281349673yiv8614662566yqt2597056605" id="yiv5187531392m_907441327281349673yiv8614662566yqtfd44371"> </div></div><span class="yiv5187531392HOEnZb"><font color="#888888"></font></span><div class="yiv5187531392m_907441327281349673yiv8614662566yqt2597056605" id="yiv5187531392m_907441327281349673yiv8614662566yqtfd65492"> </div></div></div></div></blockquote></div><span class="yiv5187531392HOEnZb"><font color="#888888"></font></span><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 clear="none"><br clear="none"></div> </div> </div> </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><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv5187531392gmail_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><br></div> </div> </div> </div></div></body></html>