<div dir="ltr"><div dir="ltr"><div>You should always include <br></div><div><br></div><div> printVarSummary(rf)</div><div><br></div><div>otherwise, ncl-talk is guessing. <br></div><div><br></div><div>Are the data global? regional? <br></div><div>===================</div><div>If you are new to NCL, please read:</div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/"><b>http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/</b></a><br></div><div>===================</div><div><div>f = addfile("<a href="http://rf2013.nc" target="_blank">rf2013.nc</a>","r")</div><div>rf = f->rf</div><div>printVarSummary(rf) ; (time,lat,lon)<br></div><div><br></div><div>rfavg = dim_avg_n_Wrap(rf,0)</div><div>printVarSummary(rfavg) ; (lat,lon)<br></div><div><br></div><div>wks = gsn_open_wks("png","rf2")</div><div>res = True</div><div>res@cnFillOn = True</div><div>res@gsnMaximize = True;</div><div>;res@gsnAddCyclic = False ; if regional, uncomment<br></div><div>plot = gsn_csm_contour_map(wks,rfavg,res)</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 2:42 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 dir="ltr"><br clear="all"><div>Hello Ncl,</div><div>I am trying to plot average data in a map . But when i m taking dim_avg_n function , then average is coming in term of index . i want average in its original latitude and logitude term so that it show properly.. please help</div><div><div>begin</div><div>f = addfile("<a href="http://rf2013.nc" target="_blank">rf2013.nc</a>","r")</div><div>time = f->time</div><div>lat = f->lat</div><div>lon = f->lon</div><div>rf = f->rf</div><div>rfavg = dim_avg_n_Wrap(rf(time|:,lat|:,lon|:),0)</div><div>print(rfavg)</div><div>wks = gsn_open_wks("png","rf2")</div><div>res = True</div><div>res@cnFillOn = True</div><div>plot = gsn_contour(wks,rfavg,res)</div><div>end</div></div><div><br></div><div>Thanking you </div>-- <br><div dir="ltr" class="gmail-m_-6599410993897486381gmail_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></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>