[ncl-talk] average in its original latitude and logitude

Dennis Shea shea at ucar.edu
Wed Mar 20 08:14:15 MDT 2019


You should always include

  printVarSummary(rf)

otherwise, ncl-talk is guessing.

Are the data global? regional?
===================
If you are new to NCL, please read:
*http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/*
<http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/>
===================
f = addfile("rf2013.nc","r")
rf = f->rf
printVarSummary(rf)         ; (time,lat,lon)

rfavg = dim_avg_n_Wrap(rf,0)
printVarSummary(rfavg)      ; (lat,lon)

wks = gsn_open_wks("png","rf2")
res = True
res at cnFillOn            = True
res at gsnMaximize    = True;
;res at gsnAddCyclic   = False   ; if regional, uncomment
plot = gsn_csm_contour_map(wks,rfavg,res)


On Wed, Mar 20, 2019 at 2:42 AM Smrati Purwar <ritipurwar at gmail.com> wrote:

>
> Hello Ncl,
> 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
> begin
> f = addfile("rf2013.nc","r")
> time = f->time
> lat = f->lat
> lon = f->lon
> rf = f->rf
> rfavg = dim_avg_n_Wrap(rf(time|:,lat|:,lon|:),0)
> print(rfavg)
> wks = gsn_open_wks("png","rf2")
> res = True
> res at cnFillOn            = True
> plot = gsn_contour(wks,rfavg,res)
> end
>
> Thanking you
> --
> With Thanks & Regards
> Smrati Purwar
> Ph.D Scholar(CSIR-JRF)
> CSIR- 4th Paradigm Institute(CMMACS)
> NAL Belur Campus, Wind tunnel road
> Bangalore, India-560037
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190320/4c693f77/attachment-0001.html>


More information about the ncl-talk mailing list