[ncl-talk] Area weighted average - cuvilinear

Dennis Shea shea at ucar.edu
Tue Nov 13 14:44:55 MST 2018


Yes. See Example 3. 

Sent from my iPhone

> On Nov 13, 2018, at 1:35 PM, Prasad, Siva <sp4436 at mun.ca> wrote:
> 
> Hi all,
> 
> I am trying to do area weighted averaging for a data on curvilinear grid.
> var = f->a   ; a(time, yc,xc)
> lat2d = f->lat    ; lat(yc,xc) 
> lon2d = f->lon  ; lon(yc,xc)
> 
> Is the following right way?
> 
> re = 6.37122e06 ; [m] average radius of earth
> rad  = 4.0 * atan(1.0) / 180.0            
> wgt = cos(lat2d*rad)           ; cosine of latitude
> 
> areaAve = wgt_areaave2(var, wgt , 1) 
> 
> Thanks
> Siva
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


More information about the ncl-talk mailing list