- 积分
- 3618
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-11-7
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 指甲钳 于 2013-9-10 14:56 编辑
画500百帕的高度场,设置为兰勃脱投影后就变成这样了。是什么原因?
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;***************************************
begin
grib_file="E:\20130727\fnl_20130728_00_00_c.grib2"
fin = addfile(grib_file,"r")
names = getfilevarnames(fin)
; print(names)
atts = getfilevaratts(fin,names(0))
dims = getfilevardims(fin,names(0))
; print(atts)
; print(dims)
; get vars
hgt= fin->HGT_3_ISBL
hgt=hgt/10
lon= fin->lon_3
lat= fin->lat_3
lev=fin->lv_ISBL3
; create plot
wks = gsn_open_wks("png","500") ; open wk station
gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap
res = True ; plot mods desired
res@cnFillOn = False ; turn on color fill
res@cnLinesOn = True ; turn of contour lines
res@cnMonoLineColor = False
; res@cnLevelSpacingF = 0.5 ; contour spacing
res@gsnSpreadColors = True ; use full range of color map
res@cnLevelSpacingF = 2
res@lbLabelStride = 4
res@cnMinLevelValF = 500
res@cnMaxLevelValF = 592
res@pmTickMarkDisplayMode = "Always"; use NCL default lat/lon labels
res@gsnAddCyclic = True ; data already has cyclic point
res@mpMinLatF = 0 ; range to zoom in on
res@mpMaxLatF = 70
res@mpMinLonF = 40
res@mpMaxLonF = 160
;------------------------------map---------------------------
res@mpOutlineOn = True ; turn off outline
res@mpFillOn = False ; turn off map fill
res@mpDataSetName = "Earth..4" ; This database contains
res@mpDataBaseVersion = "MediumRes" ; Medium resolution database
res@mpGeophysicalLineThicknessF= 2. ; double the thickness of geophysical boundaries
res@mpNationalLineThicknessF= 2. ; double the thickness of national boundaries
res@mpOutlineSpecifiers = (/"China","India","Nepal","Bhutan","Bangladesh","Myanmar", \
"Thailand","Cambodia","Vietnam","Taiwan"/)
res@mpLimitMode = "LatLon"
res@mpProjection = "LambertConformal"
res@mpLambertParallel1F = .001 ;Default: .001 ;可以自己改一改,看看投影有什么不同,挺有趣的
res@mpLambertParallel2F = 89.999 ;Default: 89.999
;---------------------------------------------plot-------------------------------------------
plot = gsn_csm_contour_map(wks,hgt(13,:,:), res)
;************************************************
end
|
|