请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4419|回复: 2

【已解决】为什么画不出来中国地图

[复制链接]

新浪微博达人勋

发表于 2017-11-30 23:31:49 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 weety9394 于 2017-11-30 23:33 编辑

不知道这段语句哪条命令画不出来
res                            = True            
res@gsnMaximize                = True
res@gsnDraw                    = False
res@gsnFrame                   = False
res@gsnLeftString              = "OBS"
res@gsnRightString             = "Total"
res@tmXTOn                     = False
res@tmYROn                     = False

;---------------------------------------------------------------
; set for the map
mpres                            = res
mpres@mpMinLatF                  = 17.
mpres@mpMaxLatF                  = 55.
mpres@mpMinLonF                  = 72.
mpres@mpMaxLonF                  = 136.

mpres@tmXBMode                   = "Explicit"                ; 指定底边坐标轴的标签
mpres@tmXBValues                 = (/70,80,90,100,110,120,130,140/)
mpres@tmXBLabels                 =(/"70E","80E","90E","100E","110E","120E","130E","140E"/)
mpres@tmYLMode                   = "Explicit"                ; 指定左边坐标轴的标签
mpres@tmYLValues                 = (/20,30,40,50/)
mpres@tmYLLabels                 = (/"20N","30N","40N","50N"/)
mpres@tmLabelAutoStride          = True                      ; nice stride on labels

mpres@mpGeophysicalLineThicknessF = 4  ;地形线粗细

mpres@mpFillOn                   = True
mpres@mpDataSetName              = "/lustre/home/niehw/NCL-Chinamap/database/Earth..4"
mpres@mpDataBaseVersion          = "MediumRes" ; or "Ncarg4_1"
mpres@mpAreaMaskingOn            = True
mpres@mpMaskAreaSpecifiers       = (/"China"/)
mpres@mpOutlineSpecifiers        = (/"China","China:Provinces"/)

mpres@mpLandFillColor            = "white"
mpres@mpInlandWaterFillColor     = "white"
mpres@mpOceanFillColor           = "white"
mpres@mpOutlineBoundarySets      = "NoBoundaries"
mpres@mpNationalLineColor        = "black"
mpres@mpProvincialLineColor      = "black"
mpres@mpGeophysicalLineColor     = "black"
mpres@mpNationalLineThicknessF   = 2
mpres@mpProvincialLineThicknessF = 1

map = gsn_csm_map(wks,mpres)

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

新浪微博达人勋

 楼主| 发表于 2017-11-30 23:34:05 | 显示全部楼层
res@mpOutlineOn            = True   这句语句缺了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-12-8 17:15:00 | 显示全部楼层
res和mpres合并,最后加draw(plot);frame(wks);两行
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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