爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6601|回复: 4

NCL画出的图没有显示经纬度度数

[复制链接]

新浪微博达人勋

发表于 2019-9-3 18:03:56 | 显示全部楼层 |阅读模式

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

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

x
现在刚开始学习NCL,但是在画气压图时,坐标轴上总是不显示经纬度的度数(如图),下面是程序,请教大家看看怎么回事?

begin
;************************************************
; read in netCDF file
;************************************************
  a = addfile("slp.nc","r")
;************************************************
; read in zonal winds
;************************************************
;  slp = short2flt(a->slp)
  t = a->slp(0,:,:)                                ; read July zonal winds
;************************************************
; create plot

  res                   = True

  res@mpLimitMode = "LatLon"
  res@mpMinLatF = 10
  res@mpMaxLatF = 60
  res@mpMinLonF = 70
  res@mpMaxLonF = 140

  res@mpProjection      = "Mercator"        ; choose projection
  res@mpGridAndLimbOn   = True              ; turn on lat/lon lines
  res@mpPerimOn         = True             ; turn off box around plot
  res@mpGridLatSpacingF = 10               ; spacing for lat lines
  res@mpGridLonSpacingF = 10               ; spacing for lon lines
  res@mpFillOn          = False

  res@gsnLeftString  = " "
  res@gsnRightString = " "

  res@cnFillOn          = True              ; color plot desired
  res@cnLineLabelsOn    = False             ; turn off contour lines

;  res@pmTickMarkDisplayMode = "Always"
  res@tmXBOn     = True
  res@tmXBValues = (/70,80,90,100,110,120,130,140/)
  res@tmXBLabels = (/"70~S~o~N~E","80~S~o~N~E","90~S~o~N~E","100~S~o~N~E","110~S~o~N~E","120~S~o~N~E","130~S~o~N~E","140~S~o~N~E"/)
  res@tmYROn     = True
  res@tmYLValues = (/15,25,35,45,55/)
  res@tmYLLabels = (/"15~S~o~N~N","25~S~o~N~N","35~S~o~N~N","45~S~o~N~N","55~S~o~N~N"/)

  res@vpXF            = 0.1                 ; make plot bigger
  res@vpYF            = 0.9         
  res@vpWidthF        = 0.8
  res@vpHeightF       = 0.8

;色标位置颜色设定
  res@lbOrientation       = "horizontal"
  res@lbLabelFontColor    = "black"
  res@lbLabelFontHeightF  = 0.02           ; label bar font height
  res@pmLabelBarOrthogonalPosF = 0.05
  res@lbBoxLinesOn        = True
  res@lbBoxLineThicknessF = 0.3
  res@pmLabelBarHeightF   = 0.06

;色标名称设定
  res@lbTitleOn          = True
  res@lbTitleString      = "~F25~ hPa"
  res@lbTitleFontColor   = "black"
  res@lbTitlePosition    = "Bottom"
  res@lbTitleFontHeightF = 0.018

;主标题
  res@tiMainString       = "~F25~ Sea Level Pressure"         ; add a title
  res@tiMainFontHeightF  = 0.03                               ; font height

  wks = gsn_open_wks("png","SLP")          ; send graphics to PNG file
  gsn_define_colormap(wks,"rainbow")

  contour = gsn_csm_contour_map(wks,t,res)  ; create the plot

;  draw(wks)
;  frame(contour)

end


未显示经纬度度数

未显示经纬度度数
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2019-9-4 11:00:32 | 显示全部楼层
已自行解决该问题。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-9 13:11:19 | 显示全部楼层
Geo-Meteo巡天er 发表于 2019-9-4 11:00
已自行解决该问题。

请问楼主怎么解决的?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-16 22:32:12 | 显示全部楼层
怎么解决的呢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-6-9 11:11:45 | 显示全部楼层
请问楼主怎么解决的啊
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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