| 
 
	积分404贡献 精华在线时间 小时注册时间2015-5-1最后登录1970-1-1 
 | 
 
| 
本帖最后由 Anonymous888 于 2018-7-3 22:44 编辑
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 使用ncep fnl 资料画500hPa高度场和850hPa风场
 
 
 
 beginfilename = "fnl_20180516_00_00"f = addfile(filename + ".grib2", "r")hgt = f->HGT_P0_L100_GLL0({50000}, :, :)hgt = hgt * 0.1u = f->UGRD_P0_L100_GLL0({85000}, ::4, ::4)u = u * 2.5v = f->VGRD_P0_L100_GLL0({85000}, ::4, ::4)v =v * 2.5wks = gsn_open_wks("pdf", "./test/" + filename)res = Trueres@gsnDraw = Falseres@gsnFrame = Falseres@gsnLeftString = ""res@gsnRightString = "";>---------------------------------------<;            set for the map;>---------------------------------------<mpres = resmpres@mpFillOn                = Falsempres@mpMinLatF               = 10.mpres@mpMaxLatF               = 80.mpres@mpMinLonF               = 60.mpres@mpMaxLonF               = 140.mpres@mpDataBaseVersion       = "MediumRes"mpres@mpDataSetName           = "Earth..4"mpres@mpOutlineSpecifiers     = (/"China:states"/)mpres@pmTickMarkDisplayMode  = "Always"mpres@tmXBMajorLengthF = 0.005;>---------------------------------------<;>---------------------------------------<;       set resource for contour plot;>---------------------------------------<cnres = rescnres@cnSmoothingOn = True ;cnres@cnSmoothingDistanceF   = 0.001cnres@cnLevelSelectionMode   = "ManualLevels"cnres@cnMinLevelValF = 500cnres@cnMaxLevelValF = 600cnres@cnLevelSpacingF = 4cnres@cnInfoLabelOn = Falsecnres@cnLineLabelsOn          =  Truecnres@cnLineLabelFontHeightF = 0.01cnres@cnLineThicknessF = 2.0cnres@cnLineLabelInterval = 1;>---------------------------------------<;>---------------------------------------<;     set resource for windBarb plot;>---------------------------------------<vcres                           = resvcres@gsnAddCyclic = Falsevcres@vcGlyphStyle               = "WindBarb"vcres@vcRefLengthF               = 0.02vcres@vcRefAnnoOn               = Falsevcres@vcWindBarbLineThicknessF  = 1.5vcres@vcWindBarbColor = "black"vcres@vcMinMagnitudeF = 0.01vcres@vcWindBarbTickLengthF = 0.35;>---------------------------------------<mapplot = gsn_csm_map(wks, mpres)cnplot = gsn_csm_contour(wks, hgt, cnres)vcplot = gsn_csm_vector(wks, u, v, vcres)overlay(mapplot, cnplot)overlay(mapplot, vcplot)draw(mapplot)frame(wks)end
 
 
 
 | 
 |