爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3308|回复: 3

[脚本编辑] modify diurnal

[复制链接]

新浪微博达人勋

发表于 2015-9-9 20:54:20 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
grads书上介绍有限,想向大家请教下modify diurnal这个自定义变量声明如何使用,能有详例更好,谢谢大家!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-9-9 21:48:12 | 显示全部楼层
看一下GrADS官方文档
modify

modify varname type
This command defines a climatological variable, which is year-independent. varname is a defined grid. There are two options for type:

seasonal    - For creating monthly or multi-monthly climatologies
diurnal     - For creating climatologies over a time period less than a day
Usage Notes

Example

Say you have a 50-year timeseries of monthly mean sea surface temperatures (a variable named sst with 600 time steps) and you want to create a climatology and then look at the monthly anomalies. First, set the time range for 1 to 12, to span a complete year. Second, define the variable "sstclim" which will contain the January mean in the first time step, the February mean in the second time set, etc. Then use 'modify' to turn 'sstclim' into a climatological variable. This means that the calendar year associated with 'sstclim' (the first year in the original sst data set) becomes a wild card. Then you can define the anomaly by subtracting the climatology from the original time series. The commands are as follows:

'set t 1 12'
'define sstclim = ave(sst, t+0, t=600, 12)'
'modify sstclim seasonal'
'set t 1 last'
'define anom = sst - sstclim'
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-9-10 10:36:53 | 显示全部楼层
river 发表于 2015-9-9 21:48
看一下GrADS官方文档
modify

谢谢哈,我在论坛上也看到您给别人解释的这个函数,但seasonal使用的挺多的,diurnal不敢贸然使用,感谢您的留言,您不妨把这个官网的链接发我一下,再次对您的回答表示感谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-9-11 01:44:39 | 显示全部楼层
JessicaYang 发表于 2015-9-10 10:36
谢谢哈,我在论坛上也看到您给别人解释的这个函数,但seasonal使用的挺多的,diurnal不敢贸然使用,感谢 ...

就是GrADS的官网啊http://grads.iges.org/grads/gadoc/gadocindex.html
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表