<div dir="ltr"><div><div><div><div><div><div>Hi, <br><br></div>I understand that it is a grads forum, but I want to help you to make your life easy. <br><br>I am so lazy, so I look for easy and quick ways. I don't care it is GrADS or other software, but I do care if the software is helping me achieve what I exactly want.<br><br></div>If I were you, I would use CDO for this, maybe because I am not much proficient at GrADS programming.<br><br></div>cdo monsum <a href="http://input.nc">input.nc</a> <a href="http://output.nc">output.nc</a><br><br></div>Hope this helps.<br><br></div>Regards,<br></div>Kishore<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: +91-8908671881<br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kishoreragi</a><br><br><a href="http://kishoreragi.webnode.com/" target="_blank">http://kishoreragi.webnode.com/</a></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 28, 2016 at 10:51 PM, Gargi Akhoury <span dir="ltr"><<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Grads User's,<div> </div><div> I have tried a program to display the monthly sum of precipitation. But I am getting only the January value. Kindly, help me regarding this.</div><div><br></div><div>Tha program is as follows:</div><div><br></div><div><div>'reinit'</div><div> mday = '31 28 31 30 31 30 31 31 30 31 30 31'</div><div> month = 'jan feb mar apr may jun jul aug sep oct nov dec'</div><div><br></div><div>'open rfc.ctl'</div><div>*'set t 1 365' </div><div> yr = 1951</div><div><br></div><div>imon=1</div><div> while(imon <= 12)</div><div> md = subwrd(mday,imon)</div><div> mc = subwrd(month,imon)</div><div> time1 = '01'mc''yr</div><div> time2 = md''mc''yr</div><div>'define month=sum(rf,t='time1',t='time2')' </div><div> imon = imon + 1</div><div> endwhile </div><div>'d month'</div><div><br></div><div>val=subwrd(result,4)</div><div>hj=write(rf_month.csv,val)</div><div><br></div></div><div><br></div><div>Thanks & Regards</div></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>