- 积分
- 53
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2022-11-20
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家好,ncl小白,我想请问一下用经过掩膜只有中国地区的,0.25×0.25的格点数据画中国地区的图时,边缘都是非常不平滑的方形锯齿,请问NCL有没有能够平滑的函数或者设置。
我的代码如下
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
temp = addfile("summer_std.nc", "r")
tem = temp->tm
; 创建绘图工作站
wks_type = "png"
wks_type@wkWidth = 2500
wks_type@wkHeight = 2500
wks = gsn_open_wks(wks_type, "figure_name")
res = True
res@cnFillOn = True
res@cnFillMode = "AreaFill"
res@cnLinesOn = True
res@cnLineLabelsOn = False
res@cnInfoLabelOn = False
res@gsnAddCyclic = False
res@gsnSpreadColors = True
res@mpDataSetName = "Earth..4"
res@mpDataBaseVersion = "MediumRes"
res@mpOutlineOn = True
res@mpOutlineSpecifiers = (/"China:states","Taiwan"/)
res@mpMinLatF = 3
res@mpMaxLatF = 60
res@mpMinLonF = 73
res@mpMaxLonF = 140
res@cnLineLabelsOn = False
res@lbTitleOn = True
res@lbTitleString = "T/~S~o~N~C"
res@lbTitlePosition = "Right"
res@lbTitleJust = "CenterRight"
res@lbTitleFontHeightF = 0.02
res@lbTitleDirection = "Across"
res@lbTitleExtentF = 0.01
res@lbTitleOffsetF = 0.04
res@lbLabelFontHeightF = 0.02
res@tiMainFont = "helvetica"
res@tiMainOffsetYF = 0.02
res@tiMainFontHeightF = 0.02
res@tiMainString = "1961-2022 Summer temperatures Standard Deviation"
res@lbBoxLinesOn = False
res@gsnRightString = ""
; 设置填充参数
res@mpFillOn = True
res@mpFillAreaSpecifiers = (/ "China:states", "Taiwan" /)
plot = gsn_csm_contour_map(wks, tem(0,:,:), res)
end
|
-
|