爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6038|回复: 1

NCL 等值线标签的问题

[复制链接]

新浪微博达人勋

发表于 2015-6-4 16:26:37 | 显示全部楼层 |阅读模式
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

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-6-15 09:20:26 | 显示全部楼层
res@cnLineLabelInterval  = 1
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表