- 积分
- 1155
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-3-31
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
需要提取的是全球冬季感,潜热资料
利用提取的资料计算54年气候态
nc资料是高斯网格。
192*94
附件一: 用grads提取的gs
- 'reinit'
- 'sdfopen e:\bs\lhtfl.sfc.mon.mean.nc'
- 'set fwrite e:\bs\global\lt.grd'
- 'set gxout fwrite'
- i=120
- while(i<=756)
- 'set t 'i''
- 'set lon 0 360'
- 'set lat -88.542 88.542'
- 'define lt=ave(lhtfl,t='i',t='i+2')'
- 'd lt'
- i=i+12
- endwhile
- 'disable fwrite'
- 'reinit'
- 'sdfopen e:\bs\shtfl.sfc.mon.mean.nc'
- 'set fwrite e:\bs\global\st.grd'
- 'set gxout fwrite'
- i=120
- while(i<=756)
- 'set lon 0 360'
- 'set lat -88.542 88.542'
- 'define st=ave(shtfl,t='i',t='i+2')'
- 'd st'
- i=i+12
- endwhile
- 'disable fwrite'
- 'reinit'
- ;
附件二:
计算气候态的f90
- program cs
- implicit none
- integer,parameter::nx=192,ny=94,nt=54
- real st(nx,ny,nt),lt(nx,ny,nt),rt(nx,ny,nt),ms(nx,ny),ml(nx,ny),mr(nx,ny)
- integer i,j,t
- open(1,file='e:\bs\global\st.grd',form='binary')
- open(4,file='e:\bs\global\mean_s.grd',form='binary')
- do t=1,nt !nt
- do j=1,ny !ny
- do i=1,nx !nx
- read(1) st(i,j,t)
- enddo
- enddo
- enddo
- do j=1,ny
- do i=1,nx
- do t=1,nt
- ms(i,j)=ms(i,j)+st(i,j,t)
- enddo
- ms(i,j)=ms(i,j)/nt
- enddo
- enddo
- do j=1,ny
- do i=1,nx
- write(4) ms(i,j)
- enddo
- enddo
- endprogram
附件3:
经过fotran处理后的气候态grd的描述文件
- dset e:\bs\global\mean_s.grd
- undef 1000000
- xdef 192 linear 0 1.875
- ydef 94 levels -88.542 -86.6532 -84.7532 -82.8508 -80.9474 -79.0435 -77.1393 -75.2351 -73.3307 -71.4262 -69.5217 -67.6171 -65.7125 -63.8079 -61.9033 -59.9986 -58.094 -56.1893 -54.2846 -52.3799 -50.4752 -48.5705 -46.6658 -44.7611 -42.8564 -40.9517 -39.047 -37.1422 -35.2375 -33.3328 -31.4281 -29.5234 -27.6186 -25.7139 -23.8092 -21.9044 -19.9997 -18.095 -16.1902 -14.2855 -12.3808 -10.476 -8.5713 -6.6666 -4.7618 -2.8571 -0.9524
- 0.9524 2.8571 4.7618 6.6666 8.5713 10.476 12.3808 14.2855 16.1902 18.095 19.9997 21.9044 23.8092 25.7139 27.6186 29.5234 31.4281 33.3328 35.2375 37.1422 39.047 40.9517 42.8564 44.7611 46.6658 48.5705 50.4752 52.3799 54.2846 56.1893 58.094 59.9986 61.9033 63.8079 65.7125 67.6171 69.5217 71.4262 73.3307 75.2351 77.1393 79.0435 80.9474 82.8508 84.7532 86.6532 88.542
- zdef 1 levels 1000
- tdef 54 linear 00dec1957 1yr
- vars 1
- ms 0 99
- endvars
附件4:
用nc画的
此图肯定是对的
grd画的:
差异很大有没有!
求解。。。。。。。
|
|