- 积分
- 32398
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-12-11
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
ncl |
问题截图: |
|
问题概况: |
txt数据中有好多0值,设置0值缺省后,会使得附近的值也缺失 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
3 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 chongzika 于 2014-4-25 11:04 编辑
这是没有设置缺省时画出来的图,具体的脚本
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
;************************************************
; Define constants
;************************************************
data = asciiread("grug.txt",(/96,144/),"float")
data!0 = "lat"
data!1 = "lon"
data&lat = fspan(-90,90,96)
data&lon = fspan(0,357.5,144)
wks = gsn_open_wks("ps","color") ; open a ps file
gsn_define_colormap(wks,"BlWhRe") ; choose colormap
res = True ; plot mods desired
res@tiMainString = "BlWhRe Colormap" ; title
res@cnFillOn = True ; turn on color fill
res@gsnSpreadColors = True ; use full range of colors
res@cnLinesOn = False
res@cnLevelSelectionMode = "ExplicitLevels" ; set explicit contour levels
res@cnLevels = (/-0.56,-0.44,-0.38,0,0.38,0.44,0.56/)
plot = gsn_csm_contour_map_ce(wks,data, res) ; create plot
end
|
-
|