- 积分
- 1742
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-6-26
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这是我将站点降水资料转换为格点数据的脚本,其中大部分参考了http://blog.sina.com.cn/s/blog_44f7c0840100on44.html,然后运行一段时间之后就被killed了,这是为什么啊,是不是脚本写错了,大家帮忙看看@longlivehj
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"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
fname = "13100808.000"
a = asciiread("/home/student/zengk/data/"+fname,-1,"string")
b = a(15::)
delim = " "
lon = stringtofloat(str_get_field(b,2,delim))
lat = stringtofloat(str_get_field(b,3,delim))
pre = stringtofloat(str_get_field(b,5,delim))
olon = ispan(112,128,1)
olat = ispan(23,35,1)
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
pre@_FillValue = 999999.000000
rscan = (/5,3,1/) ;连续的有效半径大小,最大为10,依次递减
result = obj_anal_ic_deprecated(lon,lat,pre,olon,olat,rscan,False) ;Creanm插值
wks = gsn_open_wks("pdf","ceshi")
setvalues NhlGetWorkspaceObjectId()
"wsMaximumSize" : 300000000
end setvalues
res = True
res@gsnAddCyclic = False
res@mpDataSetName = "Earth..4" ; This new database contains
; divisions for other countries.
res@mpDataBaseVersion = "MediumRes" ; Medium resolution database
res@mpOutlineOn = True ; Turn on map outlines
res@mpOutlineSpecifiers = (/"China:states","Taiwan"/)
res@mpLimitMode="LatLon"
res@mpCenterLonF=120
res@mpMinLatF=23
res@mpMaxLatF=35
res@mpMinLonF=112
res@mpMaxLonF=128
res@mpGeophysicalLineColor = "Black"
res@mpNationalLineColor = "Black"
res@mpUSStateLineColor = "Black"
res@mpLimbLineColor = "Black"
res@mpPerimLineColor = "Black"
res@cnFillOn = True
res@cnLinesOn = False ;等值线不显示
res@cnLineLabelsOn = False
res@cnFillDrawOrder = "PreDraw" ; draw contours first
res@cnLevelSelectionMode = "ExplicitLevels" ; set explicit contour levels
res@cnLevels = (/1,5,10,25,50,100,150,200/) ; set levels
res@cnFillColors =(/"White","DarkOliveGreen1","DarkOliveGreen3","Chartreuse","Green","ForestGreen","Yellow","Orange","Red"/) ;"Chartreuse3"在"Chartreuse"与"Green"之间
res@lbLabelBarOn = True
res@lbOrientation = "Horizontal"
res@vpXF = 0 ;左边距
res@vpYF = 0.95 ;上边距
res@vpWidthF = 1.0 ; height and width of plot
res@vpHeightF = 0.8
map = gsn_csm_contour_map(wks,result,res)
end |
|