- 积分
- 52
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-4-17
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用站点数据画风玫瑰图,老是报错,我把程序和报错信息贴出来,请大侠们帮忙看看是程序哪里要改?
程序:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl"
begin
f1="E:\cygwin\home\Sta288\2017wind.csv"
wrData = asciiread(f1,-1,"string")
delim = ";"
wspd = str_get_field(wrData,0,delim)
wdir = str_get_field(wrData,1,delim)
wspd@long_name = "Wind Speed"
wspd@units = "m/s"
wdir@long_name = "Wind Direction"
; specify plot arguments
numPetals = 8 ; N, NE, E, SE, S, SW, W, NW
circFr = 10.
spdBounds = (/ 10., 20., 30., 100. /)
; generate color plot
wks = gsn_open_wks("png","rose") ; send graphics to PNG file
res = True
res@tiMainString = "Wind Rose: Color + Variable Thickness"
colorBounds = (/ "blue", "green", "yellow", "red" /)
wrColor = WindRoseColor (wks,wspd,wdir,numPetals,circFr,spdBounds,colorBounds,res)
end
报错信息截图:
|
|