- 积分
- 816
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-6-18
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我所用的ncl版本是6.4的,里头画出来的图是700*700的像素,不管是将 wks@wkWidth = 1024 wks@wkHeight = 1024还是设置为其他的值,都无效,画出来的还是700*700,但在另外一个低版本下,程序出来的图就是1024*1024的,可惜那个版本低,好多的色标都不认识。所以还想用这个6.4版本的,但图的像素改变不了。有懂的高手帮忙看看,不胜感谢。
下面是绘图的那部分设置。
;绘图
ti_string=tostring(time_y(ii))
wks = gsn_open_wks ("png", "/fs01/home/climate/INTERP/qixiang/data/ccmp/output/"+ti_string+"_z500" ) ; open workstation
wks@wkWidth = 1024
wks@wkHeight = 1024
gsn_define_colormap(wks,"temp_diff_18lev"); WhBlGrYeRe GMT_panoply CBR_wet ; choose colormap
;gsn_define_colormap(wks,"sunshine_9lev") grads_default
;gsn_reverse_colormap(wks)
res = True ; plot mods desired
res@cnSmoothingOn=True
res@pmTickMarkDisplayMode = "Always"
res@mpMinLatF = start_lat;-90;-15 ; range to zoom in on
res@mpMaxLatF = end_lat;50
res@mpMinLonF = start_lon;30
res@mpMaxLonF = end_lon;170
res@mpCenterLonF =middle_lon; 120.0
res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels
res@cnMinLevelValF = mslp_min ; set min contour level
res@cnMaxLevelValF = mslp_max ; set max contour level
res@cnLevelSpacingF = 2 ; set contour spacing
res@cnFillOn = True ; color plot desired 打开等值线填色
res@cnLinesOn = False ; turn off contour lines 关闭等值线线条
res@cnLineLabelsOn = False ; turn off contour labels
res@tfDoNDCOverlay = True
res@pmTickMarkDisplayMode = "Always" ; turn on tickmarks打开坐标
res@lbLabelBarOn = True
res@cnMissingValFillColor = "skyblue"
res@mpFillDrawOrder="PreDraw"
res@pmLabelBarOrthogonalPosF=0.1
res@lbLabelStride = 1
res@pmLabelBarWidthF = 0.6
res@pmLabelBarHeightF = 0.1
;res@lbOrientation = "Vertical"
res@lbLabelFontHeightF = 0.015
res@gsnAddCyclic = False ;False
res@gsnFrame = False
;res@gsnRightString =ti_string
res@cnSmoothingOn = True
res@cnSmoothingDistanceF = 0.001
res@cnSmoothingTensionF = -0.1
res@cnLineThicknessF =2.0
;GUST=smth9(GUST, 0.50, 0, False)
chazhi_plot=smth9(chazhi_plot, 0.50, 0, False)
plot=gsn_csm_contour_map_ce(wks,chazhi_plot,res)
draw(plot)
frame(wks)
|
|