<div><br>I guess your loop is overwriting the output file and the output variable as after every loop as the name is same after each iteration...</div>
<div> </div>
<div> </div>
<div> </div>
<div>Rashed </div>
<div> </div>
<div><font size="1">Institute of Atmospheric Physics</font></div>
<div><font size="1">(CAS) Beijing.<br></font></div>
<div> </div>
<div class="gmail_quote">On Thu, Jan 13, 2011 at 6:13 PM, Zablone Owiti <span dir="ltr">&lt;<a href="mailto:zablonowiti@yahoo.com">zablonowiti@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div style="COLOR: #000; FONT-SIZE: 14pt">
<div></div>
<div> Dear users,</div>
<div>I am attempting to extract seasonal(JAS) data from a monthly netcdf data file using the attached script.</div>
<div>When I run the script, it only write the first timestep data(i.e it fails to loop). </div>
<div>What could be error in the script?</div>
<div> </div>
<div>Thanks<var></var></div>
<div> </div>
<div>
<div>
<div><b><em>===================================================</em></b></div>
<div><b><em><font color="#007f40" face="lucida console, sans-serif">ZABLONE OWITI<br></font><font face="garamond, new york, times, serif">GRADUATE STUDENT<br>Nanjing University of Information, Science and Technology<br>College of International Education<br>
Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China<br></font></em></b><font color="#333333" face="garamond, new york, times, serif">Tel: +86-25-58731402<br>Fax: +86-25-58731456</font></div>
<div><b><em><font face="garamond, new york, times, serif">Mob. 15077895632</font></em></b></div>
<div><b><em>Website: <a href="http://www.nuist.edu.cn/" rel="nofollow" target="_blank">www.nuist.edu.cn</a><br></em></b><i><strong>====================================================<br></strong><span style="FONT-STYLE: italic; FONT-FAMILY: inherit">
<p class="MsoNormal"><i><span style="COLOR: #e36c0a; FONT-SIZE: 12pt">&quot;The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment.&quot;</span></i><i><span style="COLOR: #e36c0a; FONT-SIZE: 12pt"></span></i></p>

<p class="MsoNormal"> </p></span></i><br></div></div></div></div><br></div><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br></blockquote></div><br>