- 积分
- 42918
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-8-28
- 最后登录
- 1970-1-1
|
发表于 2013-3-23 11:44:12
|
显示全部楼层
一般的function函数都有官方文档的,可以到下面的网站查看http://grads.iges.org/grads/gadoc/gadocindex.html,如果这个网站找不到那就在grads安装目录搜索一下应该就有了,我在安装目录搜索出来了是个叫shear.gsf,用写字板打开如下:
*
* This is a GrADS script library derived from code fragments by
* Stefan Gofferje <stefan@saakeskus.fi> and posted on his site
* http://www.saakeskus.fi/index.php?function=oth.
*
* These functions are designed to be implemented as a gsUDF.
*
* This script has been placed in the Public Domain.
*
*----------------------------------------------------------------
* Dewpoint temperature
* --------------------
function shear(u1,v1,u2,in_v2)
if (in_v2='in_v2'|in_v2='')
say 'Purpose: compute Wind Shear'
say 'Usage: display shear(u1,v1,u2,v2)'
say ' (u1,v1) = first (zonal,meridional) components'
say ' (u2,v2) = second (zonal,meridional) components'
return
else
v2 = in_v2
endif
return 'mag('u1'-'u2','v2'-'v2')'
|
|