爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4082|回复: 8

[源代码] E-P通量计算程序

[复制链接]

新浪微博达人勋

发表于 2015-8-9 22:25:25 | 显示全部楼层 |阅读模式

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

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

x
一个用grads编的e-p通量计算程序,使用ncep资料
'reinit'
'sdfopen uwnd.mon.mean.nc'
'sdfopen vwnd.mon.mean.nc'
'sdfopen air.mon.mean.nc'
i=565
while(i<=575)
'set lon 0 360'
'set lat 0 90'
'set z 1 17'
'set t 'i
'define prs=lev'
'define f=2*7.29e-5*sin(lat*3.1415/180)'
'define a=6.37e6'
'define uu=uwnd.1-ave(uwnd.1,lon=0,lon=360,-b)'
'define vv=vwnd.2-ave(vwnd.2,lon=0,lon=360,-b)'
'define uuvv=uu*vv'
'define uv=ave(uuvv,lon=0,lon=360,-b)'
'define temp=air.3+273.15'
'define theta=temp*pow(1000/prs,0.286)'
'define theaa=ave(theta,lon=0,lon=360,-b)'
'define dtheta=theta-theaa'
'define dthetavv=dtheta*vv'
'define thetav=ave(dthetavv,lon=0,lon=360,-b)'
'define dp=100*(lev(z-1)-lev(z+1))'
"define dtheta1=(air.3(z-1)+273.15)*pow(1000/lev(z-1),0.286)-(air.3(z+1)+273.15)*pow(1000/lev(z+1),0.286)"
'define dthetadp=dtheta1/dp'
'define fx=-1*a*cos(lat*3.1415/180)*uv'
'define fy=f*a*cos(lat*3.1415/180)*thetav/dthetadp'
'set z 2 16'
'define epdiv=hdivg(fx,fy)'
'c'
'set t 'i
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'set gxout shaded'
'd uu'
'cbarn'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'  
'c'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'set gxout shaded'
'd uu*uu'
'cbarn'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'  
'c'
'set gxout shaded'
'set cthick 10'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd vv'
'cbarn'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'  
'c'
'set gxout shaded'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd (uu*uu+vv*vv)/2'
'cbarn'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'  
'c'
'set gxout shaded'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd uv'
'cbarn'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'  
'c'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd thetav'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'
'c'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd uv'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'
'c'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd fx'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'
'c'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set mpdset cnworld'
'd fy'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'
  'c'
'set zlog on'
'set z 2 16'
'set lat 0 90'
'set lon 60'
'set gxout shaded'
'd ave(uwnd.1,lon=0,lon=360,-b)'
'cbarn'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'set mpdset cnworld'
'd fx;fy*-100'
'set gxout contour'
'set ccolor 1'
'set cthick 10'
'd epdiv'
'draw title 'i-564
'printim 'i-564'_60E.bmp white'
  i=i+1
endwhile

评分

参与人数 1金钱 +10 贡献 +2 收起 理由
mofangbao + 10 + 2

查看全部评分

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-8-9 23:06:56 | 显示全部楼层
请给出贴图。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-10 10:19:40 | 显示全部楼层
你好,正好要用到E-Pflux, 有图吗?谢谢了!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-10 12:42:37 | 显示全部楼层
算法说明中说:“for top and bottom levels one sided finite difference is used.”
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-15 10:41:32 | 显示全部楼层
跟着一起学习学习
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-15 10:47:34 | 显示全部楼层
楼主用的是哪个E-P通量的公式呀
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-11-2 11:04:04 | 显示全部楼层
太好了,谢谢分享
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-11-2 16:55:13 | 显示全部楼层
感谢楼主的分享
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-11-21 23:18:31 | 显示全部楼层
挺牛啊
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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