- 积分
- 2260
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-10-21
- 最后登录
- 1970-1-1
|
NCL
系统平台: |
|
问题截图: |
|
问题概况: |
等值线图中不是所有等值线的都有标签 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
1 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
请问一下,我用NCL作全风速图的时候,画出来等值线后发现并不是每一条等值线都有标上标签,怎么才能把所有等值线都标上标签呢?
下面是我的脚本
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
a = addfile("/mnt/hgfs/FNL/2009.11.25-2009.11.30_4/fnl_20091125_00_00.grib2","r")
u = a->UGRD_P0_L100_GLL0
v = a->VGRD_P0_L100_GLL0
wsped=new((/26,181,360/),float)
wsped(:,:,:)=sqrt(u(:,:,:)^2+v(:,:,:)^2)
wsped@units="m/s"
wsped@long_name="wind speed"
wks = gsn_open_wks("png","wind")
res = True ; plot mods desired
res@gsnMaximize = True ; maximize plot in frame
res@lbLabelAutoStride = True ; nice spacing for labelbar labels
res@cnLevelSelectionMode = "ManualLevels"
res@cnMinLevelValF = 0
res@cnMaxLevelValF = 10
res@cnLevelSpacingF = 2
res@cnLineDashSegLenF =1
res@mpOutlineOn = True ; turn on map outline
res@gsnAddCyclic =False
res@mpMinLatF = 15
res@mpMaxLatF = 35
res@mpMinLonF = 100
res@mpMaxLonF = 125
res@mpOutlineOn = True ; turn off outline
res@mpDataSetName = "Earth..4"
res@mpDataBaseVersion = "Ncarg4_1"
res@mpOutlineBoundarySets = "National"
res@mpOutlineSpecifiers = (/"China:states"/)
plot=gsn_csm_contour_map_ce(wks,wsped(25,:,:),res)
end
|
|