<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div>I think you want to use sum instead of dim_sum_Wrap:</div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/sum.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/sum.shtml</a><br></div><div><br></div><div>Also, if you are using coordinate subscripting, you should use { } characters like this:</div><div><div><div> rfSum = sum( rf({152:273},{72:118},{22:54}) )</div></div><div>the following will just use index subscripting:</div><div>rfSum = sum( rf(152:273,72:118, 22:54) )<br></div><div><br></div><div>If you are unfamiliar with this syntax see Section 2.9 of the NCL language manual here:<br><a href="http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf">http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf</a><br></div><div><br></div><div>If you have further questions please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div><br class="gmail-Apple-interchange-newline"></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 2:27 AM Smrati Purwar <<a href="mailto:ritipurwar@gmail.com">ritipurwar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi</div><div>i want the sum of all rf data for this specific co ordinate indexes</div><div><div>begin</div><div>f = addfiles( "<a href="http://rf1976.nc/" target="_blank">rf.nc</a>","r")</div><div>rf = f[:]->rf </div><div>lat = f[:]->lat </div><div>lon = f[:]->lon </div><div>time = f[:]->time </div><div> rfSum = dim_sum_Wrap( rf(152:273,72:118, 22:54) )</div></div><div><div>print(rfsum)<br></div><div>end</div></div><div>thanking you</div>-- <br><div dir="ltr" class="gmail-m_5802310842975240605gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">With Thanks & Regards</span></span></font></div><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">Smrati Purwar</span></span></font></div><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">Ph.D Scholar(CSIR-JRF<span style="background-color:rgb(153,0,255)"></span>)<br></span></span></font></div><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">CSIR- 4th Paradigm Institute(CMMACS)<br></span></span></font></div><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">NAL Belur Campus, Wind tunnel road<br></span></span></font></div><div><font size="2"><span style="color:rgb(0,0,255)"><span style="font-family:georgia,serif">Bangalore, India-560037</span></span></font></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">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></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>