- 积分
- 890
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-1-17
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
老师给了一个青藏高原边界的经纬度坐标的txt文件,读入文件之后不知道怎么画出边界轮廓,求各位大神解答,谢谢!下面是我的脚本和图:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/cnmap/cnmap.ncl"
begin
minGlat=25.
maxGlat=40.
minGlon=74.
maxGlon=104.
;Three river source header"
slat=31.7
elat=36.2
slon=89.5
elon=102.2
slat2=31.7-1.
elat2=36.2-1.
slon2=89.5-1.
elon2=102.2-1.
f = addfile("$NCARG_ROOT/laiavgrcp85.nc","r")
lai1 = f->lai
wks = gsn_open_wks("png","laiavgrcp85")
res= True
res@gsnDraw = False ; don't draw yet
res@gsnFrame = False ; don't advance frame yet
res@cnLevelSpacingF = 0.5
res@gsnAddCyclic = False
res@cnFillOn = True ; Turn off contour lines
res@cnLinesOn = False ; Turn off contour lines
res@cnFillPalette = "NOC_ndvi"
res@cnFillMode = "RasterFill"
plot = gsn_csm_contour(wks,lai1(0,:,:),res)
cnres = True
cnres@china = False ;draw china map or not
cnres@river = True ;draw changjiang&huanghe or not
cnres@province = True ;draw province boundary or not
cnres@nanhai = False ;draw nanhai or not
cnres@diqu = False ; draw diqujie or not
chinamap = add_china_map(wks,plot(0),cnres)
;TP boundary
coord = asciiread("$NCARG_ROOT/lib/ncarg/nclscripts/cnmap/TP_boundary.txt",(/7300,2/),"float");读入文件下面该怎样绘图
;panel plot
draw(plot)
frame(wks)
end
|
|