- 积分
- 10653
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-10-10
- 最后登录
- 1970-1-1
|
发表于 2014-5-20 12:45:36
|
显示全部楼层
本帖最后由 longlivehj 于 2014-5-20 12:46 编辑
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
filename = "temp.txt"
nrows = numAsciiRow(filename)
ncols = numAsciiCol(filename)
data = asciiread(filename, (/nrows, ncols/), "float")
res = True
res@sfXArray = data(:, 0)
res@sfYArray = data(:, 1)
wks = gsn_open_wks("x11", "temp")
plot = gsn_csm_contour_map(wks, data(:, 2), res)
end |
|