爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4915|回复: 1

加度标签以及经纬度间隔

[复制链接]

新浪微博达人勋

发表于 2020-1-1 20:21:34 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
fi=addfile(filename,"r")
   u=fi->$uname$(0,{-20.0:40.0},{40.0:180.0})
   v=fi->$vname$(0,{-20.0:40.0},{40.0:180.0})
   PRECC=fi->$Pname$(0,{-20.0:40.0},{40.0:180.0})
   printVarSummary(u)
   printVarSummary(v)
   printVarSummary(PRECC)
;************************************************
; set default res
; res1 for gsn_csm_contour
; rea2 for gsn_csm_xy
;************************************************
  wks   = gsn_open_wks ("pdf", case+date)              ; open workstation
  res                        = True
  res@gsnMaximize            = True
  res@vcMinFracLengthF       = 1.0
  res@vcRefMagnitudeF        = 3.0
  res@vcRefLengthF           = 0.045
  res@vcGlyphStyle           = "CurlyVector"
  res@gsnDraw                = False
  res@gsnFrame               = False
  res@gsnLeftString          = ""
  res@gsnRightString         = ""
  res@vcMinDistanceF         = 0.02
  res@vcLevelPalette         = "ncl_default"
  res@pmTickMarkDisplayMode  ="Always"
  res@tiMainString           = "example"
  plot=gsn_csm_vector(wks,u,v,res)
   ;create contour plot
  resCN                      = True
  resCN@cnFillOn             = True
  resCN@cnLinesOn            = False
  resCN@gsnSpreadColors      = True
  resCN@gsnDraw              = False
  resCN@pmTickMarkDisplayMode ="Always"
  base=gsn_csm_contour(wks,PRECC,resCN)
  ;overlay vector plot onto contour plot
  overlay(base,plot)
  draw(base);draw the combined obj
  frame(wks);advance the frame
end

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

新浪微博达人勋

 楼主| 发表于 2020-1-1 20:23:45 | 显示全部楼层
加了度标签不显示,经纬度间隔老是有问题
C:\Users\11383\Desktop\1
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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