爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8269|回复: 0

[作图] ncl

[复制链接]
发表于 2021-4-30 17:52:21 | 显示全部楼层 |阅读模式

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

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

x
  为什么等值线全是黑线
  f=addfile("ersst.v4.200611.nc","r")   ; r means open the file to read

  fSST = short2flt(f->sst)
  wks = gsn_open_wks("png","SST_sample")      ; 指定輸出成 pdf 格式
  res = True                                    ; plot mods desired
  res@cnLevelSelectionMode = "ManualLevels"     ; set manual contour levels
  res@cnMinLevelValF       = -10.               ; set min contour level
  res@cnMaxLevelValF       =  34.               ; set max contour level
  res@cnLevelSpacingF      =   4.               ; set contour spacing

  res@tiMainString         = "ERSST"    ; plot title
  res@cnFillOn              = True     ; turn on color fill
  res@cnLinesOn             = True    ; turn of contour lines
  res@cnLevelSpacingF       = 0.5      ; contour spacing
  res@cnFillPalette         = "BlAqGrYeOrRe"

  res@gsnAddCyclic          = False    ; data already has cyclic point
                                                  ; this must also be set for any zoom
  res@mpMinLatF            = -60      ; range to zoom in on
  res@mpMaxLatF            =  30.
  res@mpMinLonF            =  30.
  res@mpMaxLonF            = 120.

  plot = gsn_csm_contour_map(wks,fSST(0,0,:,:),res)


QQ截图20210430175154.png
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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