【问题标题】:NCL Draw a map without the sourrounding frameNCL 绘制没有周围边框的地图
【发布时间】:2021-05-23 15:31:25
【问题描述】:

我在 Debian 下使用 NCL 6.6.2,不想创建一些投影图像。我怎样才能防止在地图周围画一个框架。我暂时找不到合适的属性。

;================================================;
;  map1.ncl
;================================================;
begin

  wks  = gsn_open_wks("png","map1")  ; send graphics to PNG file

  res                       = True
  res@gsnFrame              = False  ; <-- This seems not to work because it draw nothing at all.

  res = True;
  res@mpProjection               = "Satellite" ; choose map projection
  res@mpCenterLonF               = 13.         ; choose center lon
  res@mpCenterLatF               = 54.         ; choose center lat
  res@mpSatelliteDistF           = 3.0         ; choose satellite view
  res@mpOutlineOn                = False       ; 
  res@mpGridAndLimbOn        = True
  res@mpDataBaseVersion      = "MediumRes"  

  col = (/ .20, 0.20, 0.30, .8/)
  res@mpLandFillColor        = col
  res@mpOceanFillColor       = "White"
  res@mpInlandWaterFillColor = col

  plot = gsn_csm_map(wks, res)  ; draw satellite proj map
end

【问题讨论】:

    标签: mapping ncl


    【解决方案1】:

    因为你设置了@gsnFrame=False,所以NCL暂时不会绘制。

    如何解决?

    最后加上:

    frame(wks)
    draw(plot)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-03
      • 2011-01-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多