- 积分
- 3638
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-5-5
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用fwrite使nc数据转dat格式,dat格式数据所有时次都采用了最后一个时次的数据,麻烦大家帮忙看看,问题出在哪里,谢谢各位。nc数据的ctl和gs如下:
ctl:
dset e:\uwnd.mon.ltm.nc
title monthly ltm uwnd from the NCEP Reanalysis
undef -9.96921e+36
dtype netcdf
xdef 144 linear 0 2.5
ydef 73 linear -90 2.5
zdef 17 levels 1000 925 850 700 600 500 400 300
250 200 150 100 70 50 30 20 10
tdef 12 linear 00Z01JAN0001 1mo
vars 2
uwnd=>uwnd 17 t,z,y,x Monthly Long Term mean u wind
valid_yr_count=>valid_yr_count 17 t,z,y,x count of non-missing values used in mean
endvars
gs:
'reinit'
'sdfopen E:\uwnd.mon.ltm.nc'
'set gxout fwrite'
'set fwrite e:\uwnd.dat'
'set x 1 144'
'set y 1 73'
t=1
while(t<=12)
'set t ' t
'set lev 200'
'd uwnd'
t=t+1
endwhile
'disable fwrite'
;
|
|