[gradsusr] hdivg function
Jeffrey Duda
jdduda at iastate.edu
Sun Nov 14 22:56:05 EST 2010
Yaqiang,
You are exactly correct.
Jeff Duda
On Sun, Nov 14, 2010 at 9:22 PM, Yaqiang Wang <yaqiang.wang at gmail.com>wrote:
> The GrADS documentation said that the cdiff function may be used to
> duplicate the calculation done by the hcurl function:
>
> define dv = cdiff(v,x)
> define dx = cdiff(lon,x)*3.1416/180
> define du = cdiff(u*cos(lat*3.1416/180),y)
> define dy = cdiff(lat,y)*3.1416/180
> display (dv/dx-du/dy)/(6.37e6*cos(lat*3.1416/180))
>
> But there is no description of hdivg function. I guess hdivg function
> could be duplicated using cdiff function as following. Please anybody
> tell me if it is correct or not. Thanks!
>
> define dv = cdiff(v,x)
> define dx = cdiff(lon,x)*3.1416/180
> define du = cdiff(u*cos(lat*3.1416/180),y)
> define dy = cdiff(lat,y)*3.1416/180
> display (du/dx+dv/dy)/(6.37e6*cos(lat*3.1416/180))
>
> Yaqiang Wang
>
> Chinese Academy of Meteorological Sciences
> yaqiang.wang at gmail.com
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
--
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101114/f19b2345/attachment-0003.html
More information about the gradsusr
mailing list