- 积分
- 1502
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-12
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 黄小仙儿 于 2014-4-13 16:24 编辑
从地理信息网上下的,需要的人可以来下
添加底图的例子可以参考NCL的shapefiles板块
这是链接http://www.ncl.ucar.edu/Applications/shapefiles.shtml这个是官网上wrf数据的例子,大家可以先参考一下
;----------------------------------------------------------------------
; This is a basic NCL template for creating contours over maps using
; WRF data, and attaching shapefile outlines. This template plots one
; timestep of HGT from a WRF file, and attaches shapefile outlines
; from the "USA_adm2.shp" and "CAN_adm2.shp" shapefiles, downloaded
; from http://www.gadm.org/country/
;----------------------------------------------------------------------
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/wrf/WRFUserARW.ncl"
begin
filename = "wrfout_d01_2002-07.nc"
a = addfile(filename,"r")
ter = a->HGT(0,:,:) ; Read the variable to memory
wks = gsn_open_wks("x11","wrf_hgt_shapefile")
gsn_define_colormap(wks,"OceanLakeLandSnow") ; Change color map
res = True ; Use basic options for this field
res@cnFillOn = True ; Create a color fill plot
res@ContourParameters = (/1,1100,20/)
contour = wrf_contour(a,wks,ter,res)
pltres = True ; Set plot options
pltres@PanelPlot = True ; Tells wrf_map_overlays not to remove contours
mpres = True ; Set map options
mpres@mpOutlineOn = False
mpres@mpFillOn = False
;---Create the contours over the WRF map (nothing will be drawn yet).
plot = wrf_map_overlays(a,wks,contour,pltres,mpres)
;---Attach the shapefile polylines using files read off gadm.org/country.
usa_shp_name = "USA_adm/USA_adm2.shp"
canada_shp_name = "CAN_adm/CAN_adm2.shp"
lnres = True
lnres@gsLineColor = "gray25"
lnres@gsLineThicknessF = 0.5
usa_id = gsn_add_shapefile_polylines(wks,plot,usa_shp_name,lnres)
can_id = gsn_add_shapefile_polylines(wks,plot,canada_shp_name,lnres)
draw(plot) ; This will draw the map and the shapefile outlines.
frame(wks) ; Advance the frame
end
还有这个是ncl对grib,hdf,wrf数据处理及格式的讲解pdf,需要的也可以下载看看
|
评分
-
查看全部评分
|