- 积分
- 271
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-13
- 最后登录
- 1970-1-1

|
GrADS
系统平台: |
cygwin |
问题截图: |
|
问题概况: |
请问在dsgrid2插值函数示例代码中xeye=3.3和dssetp("exp",0.5)这两个地方分别是什么意思呢 没看明白 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
1 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这是我写的代码,不知道为什魔输出结果是这样- load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
- load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
- load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
- begin
- filepath = "/home/zxy/work/20100101.txt"
- lines = asciiread(filepath,-1,"string")
- ;delete the line which R is missed
- e=dimsizes(lines)
- station = stringtofloat(str_get_cols(lines,1,5))
- lon = stringtofloat(str_get_cols(lines,16,21))
- lat = stringtofloat(str_get_cols(lines,9,13))
- pre = stringtofloat(str_get_cols(lines,38,42))
- olon = new((/491/),float)
- olat = new((/411/),float)
- data1 = new((/491,411/),float)
- olon = fspan(67.25,137.37,491)
- olat = fspan(15.19,55.23,411)
- olon!0 = "lon"
- olon@long_name = "lon"
- olon@units = "degrees-east"
- olon&lon = olon
- olat!0 = "lat"
- olat@long_name = "lat"
- olat@units = "degrees_north"
- olat&lat = olat
- ;R@_FillValue = 999.0
- dssetp("exp",0.5)
- data1 = dsgrid2(lon,lat,pre,olon,olat)
- print(data1)
- ;print(data1(0,2))
- opt = True
- opt@fout = "/home/zxy/work/out_dsgrid2_2.txt"
- ;print(data1)
- ;print(olat)
- ;write_matrix(data1,"lf10.2",opt)
- write_table(opt@fout,"w",[/olon,olat,data1/],"%3i %3i %7.4f")
- end
复制代码
|
-
输出结果
-
输入文件
|