版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
NCL变量及基本语法第三章数据处理nclnclarrow-ImportantNCLV6.0.0和V6.1.x的不同之 6.0.0and 6.1.0and 最多256Namedcolors必须首先被transparent
默认colortable有256gsnSpreadColors为lbLabelAutoStride为默认函数代码是‘Namedcolorsdonothavetobeaddedtocolormap目 NCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/or–Contours叠加在maps,vectors叠加在contours等等markers,polylines,polygons,barcharts,skew-T,windroses,taylorSpecialized ScatterScatterandlineplotBasedonaofJoelNorrisusingdummyMJOgraphicCourtesyMJOgraphicCourtesyofDennisSpecializedLine,fill,andLine,fill,andpattern Contours(line和filled叠加在地图BrettD.EstradaBrettD.EstradaEvansEvansplot由JasonEvansofUNSW16mapprojections(816mapprojections(8 Transparencyandimageoverlay–newinImranImranNadeem,BOKUSpecializedSpecializedSpecializedMultipleoverlays(contoursandovercontoursCCSM4dataSixCCSM4dataSixfieldsoverlaid:IceTopomapSealevelpressure(linecontours)UVclouds(partiallyfilledPrimitives(markers,lines,text,SpecializedFilledpolygonswithSpecialized–SkewT,WRF,windroses,panels,SpecialTemtesand
WindSkewMoreSpecialTemtesand Pie BlankBlank Bar WRFplot TaylordiagramCourtesyofDennisSheaTaylordiagramCourtesyofDennisSheaandAdamPhillips,ShapefileisageospatialvectordataformatforNumerous)shapefilesbefoundbygooglingonthe ThethreeThethreetypesofshapefilessupportedbyNCL:Point–locationsofpopulationdataLine–rivers,roads,trailsPolygon–counties,)offersconsistentboundariesatmanylevels.Thelevel0database(nations)isgoodtouseforglobalormesoscaleresults,level1isthefirstlevelofsub-nationaladministration(typicallystates/provincesandterritories)whilelevel2offersthesecondlevelofadministrationandispotentiallyusefulforhigh-resolutionplots.TheseTheseshapefilesweredownloadedScriptsareTheThe"AlaskaEssentialFishHabitatSpecies"shapefilewasdownloadedPanelplotsPanelplots–multipleplotsonapage Multiplecolormaps–newfeaturein FirstFirsttwomapdatabasesbuilt-in;high-resolutionavailableassimpleFromJohnFromJohnErtl,CourtesyCourtesyAdamPhillips,NCARJohnJohnFasullo,NCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/or五步绘制NCL图加载定义colormap可选Step1:加载“gsn”Twoways nggraphicsin 这些接口需要两 “gsn为“GettingStartedusing“csm”意为“ClimateSystemStep1:加载gsn_csm.ncl会用到gsn_code.ncl里的函数加载的顺序_FillValue识别为缺省(“missing_value必须存在“degrees_eastor“degrees_north”的“units”contourlinetickmarksoutlat/loncontourlinetickmarksoutlat/lon“basic“metadataawareStep1:加载“gsn”load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"y= ;101wks=gsn_open_wks("ps","test"); =True ;修改默认绘图设置res@xyLineColor="Blue" ;linecolorres@tiMainString="Thisisatitle" ize=Trueplot ;Step1.5加数据loadloady= ;101 wks=gsn_open_wks("ps","test"); =True ;plotoptionsres@xyLineColor="Blue" ;linecolorres@tiMainString="Thisisatitle"res@gsnize=Trueplot=gsn_csm_y(wks,y,res) ;noXvaluesStep2PostScript“ps”“eps仅一页图PDFX11window“x11有助于PNGNCGM“ncgm”Step2wks=gsn_open_wks(“x11”,“test”);X11wks=gsn_open_wks(“ps”,“test”);“test.ps”wks=gsn_open_wks(“png”,“wrf”);“wrf.png”wks=gsn_open_wks(“pdf”,“slp”);“slp.pdf”wks=gsn_open_wks(“eps”,“cn”) ;“cn.eps”Step2loadloady= ;101wks=gsn_open_wks("ps","test");‘test.ps’ =True ;plotoptionsres@xyLineColor="Blue" ;linecolorres@tiMainString="Thisisatitle" ize=Trueplot= ;noXStep3定义一个colormap(可选提供的默认colormap(256色 如果某个colormap经90colormaps或者自己创选选其他color自己创建colortable1生成(RGB三个颜色的数值,范围均是0~255数值越大,#rg16032 0自己创建colortable3,将xxxx.rgb$NCARG_ROOT/lib/ncarg/colormaps/路径下。4测试wks=gsnopengsndefinegsndraw(Step3定义一个colormap(可选loadloady= ;101wks=gsn_open_wks("ps","test"); =True ;plotoptionsres@xyLineColor="Blue" ;linecolorres@tiMainString="Thisisatitle" ize=Trueplot= ;noXStep4:修改绘图选项(可选ResourcesNCL绘图中的 legends,maps,primitives,streamlines,textstrings,tickmarks,titles,vectors,XYplots XYXYandtheirlabelbaranditslabelbaranditsmain“xy”-XY“vc”-Vector“tm”-
“cn”-Contour“ti”-“lb”- “gsn”–可被 res 可以任意命名res@mpMinLatF30;小数点不是必很多有默认的值res@tiMainString=“Thisisatitle”res@tmXBLabelFontHeightF=0.01LineLabelsOn=Trueres@xyLineColors=(/5,7,11/)res@xyLineColors=(/“red”,“green”,“blue”/)res@lgLineThicknesses=(/1.0,2.0,3/)等等Step4:修改绘图选项(可选load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"y= ;101wks=gsn_open_wks("ps","test");=;plotres@xyLineColor= ;lineres@tiMainString="Thisisatitle" ize=Trueplot=gsn_csm_y(wks,y,res) ;noXvaluesStep5调用相应的绘图调用一个gsn_csm_xxxxx绘图函数 =plot=gsn_csm_contour(wks,data,res)plot=map=gsn_csm_vector_map(wks,u,v,res)phgt=gsn_csm_pres_hgt(wks,data,res) Step5调用相应的绘图loadloady= ;101wks=gsn_open_wks("ps","test"); =True ;plotoptionsres@xyLineColor="Blue" ;linecolorres@tiMainString="Thisisatitle" ize=Trueplotplot= ;noXNCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/orLine-by-lineXYplot一条曲XYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelExampleXYplot,“xy1b.nclxy1c.ncl”等展示的是同一个例子,但逐渐增加的resources以逐步修load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"y= ;101wks=gsn_open_wks("ps","xy1a");res 暂不需要修改图plot=gsn_csm_y(wks,y,res) ;noXvaluesXX轴值从0至Example(colorindex值–xyLineColor–设置线条颜load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"y=wks= ;;SetanXYplotTrue将要做些绘图修改res@xyLineColor 线条颜色(老方法plot=Index0Index0IndexIndex1当前colorcolorindex2当前colorloadloady=
Sidetopic:missing;Assignmissing = = =wks=gsn_open_wks(“ps”,;SetanXYplot =True; ntosetres@xyLineColor= ;Lineplot= =y@_FillValueExample–xyLineThicknessF–修改线条的粗loadloady@long_namey@long_name“Sinevalues”看图x@long_name=“X;CreatesomeX;Yx=ispan(-y=wks= ;;SetsomeXYplot== 3plotplot=SamplesofnamedNCLNCL会为XY轴努力挑出“niceYYaxisXXaxisExample–trYMinFtrYMaxF,trXMinFtrXMaxF设值(transformation这些resources同样可应用于contour,vector和streamlineplots..x=ispan(-y=wks=gsn_open_wks("ps","xy1d") =True = ;5xas
=min(y);Setaxes===plot=gsn_csm_xy(wks,x,y,res)x=ispan(-50,50,1)y=sin(0.0628*x)wks= = = ;5xas
-5;Setaxes =-=plot=gsn_csm_xy(wks,x,y,res)ExamplexyDashPattern-设置曲线的虚线类tiMainStringtiXAxisStringtiYAxisString设置坐“long_name”attributes..x=ispan(-y=wks= = =“Blue” =2 ;0isdefault(solid)res@xyLineThicknessF=3 ;3xasthickres@trYMinF=min(y)res@trYMaxF=max(y)res@trXMinF=min(x)res@trXMaxF=
="Thisisamain="X="YDashPatternresource中,比如cnLineDashPattern(contourlines),mpGridLineDashPattern(mapgridExampletmXBModetmXBValuestmXBLabels设置底边坐标注意tickmarkresources:所有4个坐标轴自的tickmarks设定,比如:tmYLMode(Yleft),tmYRMode(YtmXBMode(Xbottom),tmXTMode(X..记住记住resources的顺序不x=ispan(-50,50,1)y=sin(0.0628*x)wks= = ;Setsomeplot
==
;defaultisforeground;0isdefaultres@xyLineThicknessF= ;3xas
=-==-=
;MinimumYaxis umYaxis;MinimumXaxis umXaxis
="Thisisamain="X="Y =“Explicit” 指定底边坐标轴的res@tmXBValues=(/-50,-25,0,25,50/);res@tmXBLabels=(/"A","B","C","D","E"/);.plot=gsn_csm_xy(wks,x,y,res)颠颠倒Yaxis关闭Line-by-lineXYplot–oneXYplot多条曲PositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelExampleASCIIY需要调整行列curvesxX可以和Y维同维数,也可以仅是一维的数组,其大小需和Y的最右边维的大小一致(#暂时不用load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl";;Dataonfileisdimensioned#points;by#curves(4),soweneedtoreorder; =y!0=y!1=y2=y(ncurves|:,npts|:);把y转变4xwks=gsn_open_wks("ps","xy2a");plot=gsn_csm_yres= plot=gsn_csm_y(500行4列0200400
y= y(0,0)=y(0,1)y(0,0)=y(0,1)=y(0,2)=y(0,3)=y(1,0)=y(1,1)=y(1,2)=y(1,3)=y(2,0)=..y(499,0)=Y(499,1)=Y(499,2)=Y(499,3)=0.254092200.254400.2540.4512200.451400.4510.703955200.704400.7041.01186201.012401.0121.3743201.374401.3741.79057201.791401.7912.25983202.26402.262.78115202.781402.7813.35351203.354403.3543.97575203.976403.9764.64663204.647404.6475.36482205.365405.365..28.1424228.142428.142.1063214.106414.106 res@xyLineColor=res@xyLineThicknesses=(/2,3,4,5/): =(/"red","brown","green","blue"/)res@xyMarkers=(/0, 16,0,15/)res@xyMarkerColors=(/0,16,0,: ="line="+res@pmLegendOrthogonalPosF0.28 =res@pmLegendWidthF=
;.移 AdvancedLine-by-lineXYplot–oneXYplot–multipleUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelSpecialtopic图NCL在一个单位[0.,1.]平方范围内图形(不包 比调整,用viewport“vp”resources:vpWidthF和改变位置,用vpXF和图形的其他方面会自动调( “viewLine-by-lineXYplot–oneXYplot–multiplePositioningplotsona“frameUseof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelSpecialtopic“frame主要的绘图函数在绘图时默认进行翻页(advancetheframeorpage)可通过resource“gsnFrameandprocedure“frame”来完loadloady1=y2=cos(0.0628*ispan(0,100,1))+wks=gsn_open_wks(“ps”,该产生两个图形该产生两个图形plot=第一第二load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"y1=y2=cos(0.0628*ispan(0,100,1))+2.wks=gsn_open_wks(“ps”,“xy”) =Trueres@gsnFrame ;不翻plot=plot= ;现在翻使用vpXXXresources调整图loadloady1=y2=cos(0.0628*ispan(0,100,1))+wks=gsn_open_wks(“ps”, =res@gsnFrame 不翻res@vpWidthF=res@vpHeightF= ;靠近页的左边plot= 0.57; 0.57;超过Line-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame” ize”resource的ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanel ize= res@gsnize= res@gsnize= res@gsnize= res@gsnize=“landscape” “portrait”“landscape”ClickBasicgraphicalPositioningPositioningLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof Contourplotover
ContouringcurvilinearandunstructureddataWRFPanelExamplenetCDF数据有_FillValue属性它会自动被bygsn_csmload"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"tftf=Ttf 读入温度场的第一时 ;PrintT’swks=res 暂不设置plotplot=TotalSize:47521188valuesNumberofDimensions:2Dimensionsand [lat|33]x[lon|lat:lon:[-140..-NumberOfAttributes:_FillValue:-_FillValue:-从坐Exampleloadloadtf=T=tf- ;GetfirsttimeT&lon@unitsT&lon@units“degrees_east”加上单T&lat@units==res@lbOrientation=res@lbOrientation“Vertical”移动plot=不同的坐不同的坐Examplecolorcolorload"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"tf=T=tf-T&lon@units“degrees_east”添加单T&lat@units=wks= 改变color = =True ;打开填色 =“Vertical”;移动labelbarplot=300<=300<=values<values>=248248<=values<values<Line-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof Contour
ContouringcurvilinearandunstructureddataWRFPanelExample“degrees_east”,“degrees_north”loadloadtf=T=tf- ;TwillhavemetadataT有坐标数组和属性printVarSummary(T&lon);wks= ;res 暂不改变plot=tosetgsnAddCyclictoFalsetoavoidaTotalSize:76801920 [lat|40]x[lon|lat:[-lat:[-lon:[-环性long_name unitslong_name unitsDegreesres@gsnAddCyclic=Type:integerTotalSize:19248valuesNumberofDimensions:1Dimensionsand [lon|unitsNumberOfunits 很简单,T&lat有“degrees_north”属 ExamplecnLevelSelectionMode设定等值线还需用另3个resources:cnMinLevelValF,cnMaxLevelValF,cnLevelSpacingFload"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"模式, tf=T=tf-wks= = = =195 ;最小 =195 ;最小值 =328 ;最大值 =2.25 ;间距Example改变Colorloadloadtf=T=tf-wks= = =LevelSelectionMode==;Min=;Max=; 打开颜plot=Example定colormap中的颜色段cnLinesOn打开或关contourgsnSpreadColorStart2gsnSpreadColorEnd=-gsnSpreadColorStart=..T=tf->t(0,:,:) = =FalseLevelSelectionModeManualLevels" =195.0 ;最小值 = ;最大 ;间res@res@gsnSpreadColorStart 起始于colorindex 打开等值线 关闭等值线线=;关闭lbarbox线rplotplot=..Sidetopic:Sidetopic:wks= = = =LevelSelectionMode==;Min=;Max=;
关闭线 ;关闭lbarboxplot=ContouringexercisesandClickContourplotContoursovermapexercises(setContoursovermapexercises(set Lookfor“contour”Contours:nomapContoureffectsContourlabelsAdvanced改变 的显示风格控制每一条等值线的shading控制每一条等值线的colorand/orLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
WRFPanelSpecialtopiconcontouring−2Dlon/lat数组(曲线的,WRFfiles, literes@sfXArray=res@sfYArray=
非规则coordinates1DX,Y,Z数组Example:2Dlat/lonDimensionsDimensionsand [lat|384]x[lon|time units long_name: gridboxmeanicethicknesscoordinates:ijtime_FillValue:time_rep floatfloatTLON(lat,lonlong_name gridcenterunits floatTLAT(lat,lonlong_name: gridcenterlatitudeunits: loadloadf=addfile("iceh_mavg.0014- =f-
;Ice;注意没有坐标数wks=gsn_open_wks(”ps","ice") ;ice.ps = f->TLON;2Dlat/lon数组必须=f-“hi==;指定最南纬plot=Example:1Dx,y,zType:floatNumberofType:floatNumberofDimensions:Dimensionsand [time_counter|240]x[jpjb|1]x[jpib|time_counter:[ 0..239]NumberOfAttributes:4short_name:PRECITOTALEgridtype: long_name: units: Variable:Variable:bt42_lat(filevariable)Type:doubleNumberofDimensions:Dimensionsand [jpjf|1]x[jpif|Variable:bt42_lon(fileNumberofDimensions:Dimensionsand [jpjf|1]x[jpif|loadg=f=wks=gsn_open_wks("x11","arpege") =g->bt42_lon(0,:);1D=g-rr
== = LevelSelectionMode="ExplicitLevels" =fspan(0,30,201) 关闭box LambertEqualArea";地图FillMode=RasterSmoothingOn=这个Raster效果好RasterRasterExamplesofcontouringnon-rectilinearClickon“non-uniformgrids/randomAdaptivegridsORCAgridsTriangularmes Line-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelWRF绘图样CindyBruyèreAbby很多WRF-ARW数据的后处是“black-box”;过的customization,考虑使用加载必须
loadload;打开文档并数hgt=wks=gsn_open_wks(“ps”,”hgt”);设置一些绘图的蓝色的resources表明特别蓝色的resources表明特别的FillOn=;有一些特别的wrf_xxxxresources ="GEOGRIDFIELDS”res@ContourParameters=(/250.,3500.,100./)contour=wrf_contour(f,wks,hgt,res)pltres=mpres=
=slp=wrf_user_getvar(f,“slp”,0)t2=wrf_user_getvar(f,“T2”,0)slp=wrf_user_getvar(f,“slp”,0)t2=wrf_user_getvar(f,“T2”,0)v10=wrf_user_getvar(f,V10“,0)
;Line;Line = = =;Filled = = =; =ov@NumVectors= =;Overlayeverythingonampres=pltres=SampleWRFSampleWRF..的版像有Line-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelExample−gsnPolar,gsnLeftString,load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"a=u=a-v=a-
;;读第一个时;.和第15 = ;Northern = ;Northern ="Zonal;Leftres@gsnRightString="meters/second";Rightres@gsnCenterString=" ;Notusedplotplot= notusedhere“tm“tmtickmarkresources在这里不起作用这些经res@res@vcRefMagnitudeF=20 ;矢量的大小 =0.09;参考矢量的大小res@vcMinDistanceF=0.02;越靠近极区越少画矢量res@res@vcGlyphStyle“CurlyVector”打开curly= 3= =VectorplotClickon“vectorplotMorenclnclnclarrow-resv2@vcMapDirectionLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelFunctions有gsn_add_polygon记号线条和多边形的resources以“gs文本的resources以“tx(txFontHeightFtxJusttxFont,txFontColor,etc.)Example–mpDataBaseVersion,mpLimitMode,mpMinLatF,mpMaxLatF,mpMinLonF,mpMaxLonF,mpFillOnloadload = res@mpDataBaseVersion="MediumRes";中等分辨率 =“Earth..4” ;有其他国家的分类res@mpOutlineBoundarySets="AllBoundaries" =
=-=-==
放大澳大利 ="Australianstatesandmap= ;DrawExample将mapcodeloadloadlocalres 建立resourceres@gsnFrame=Falseres@gsnDraw=Falseendif =True =False ="Earth..4";
==- =-== ="Australianstatesandmap=gsn_csm_map(wks,res);Createdrawdefaultmapmap=Australia_map(wks,"draw")Example (略)wks=gsn_open_wks("ps","poly3e");Openmap=Australia_map(wks,"create");生成有5个;生成有5个lat/lon的数lat=(/-12.46,-31.95,-23.70,-37.81,-lon=(/130.84,115.86,133.88,144.96, =True= 放大记dum=;绘制地图和记号Example(略)wks=gsn_open_wks("ps","poly3f");Open;Createthemapsowecanaddlines,strings,andmarkers.map=Australia_map(wks,"create");Createarrayswithcitiesandlat/loncities=(/"Darwin","Perth","AliceSprings","Melbourne","Sydney"/) =(/-12.46,-31.95, =(/130.84, ;Attachmarkerstomap.;Attachmarkerstomap. =Truemres@gsMarkerSizeF=10.mres@gsMarkerIndex=;Makeit;Filledmres@gsMarkerColor=dum1= =True ;Defaultis = ;defaultisdum2= ;DrawingthemapdrawsthePrimitivesClickPrimitivesexercises(set1)Primitivesexercises(set2)Primitivesexercises(setMoreLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelExampleSpecialtopicpanelingplots(plots)–gsnDraw,vpWidthF,vpHeightFresourcesload"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"p=f-p=p*0.01p@units="hPa"
气压;转换为res@res@gsnDraw=res@gsnFrame=;Don'tdraw;Don'tadvancewks=gsn_open_wks("ps" =plot1plot1=gsn_csm_contour(wks,p(0,:,:),res)plot2=gsn_csm_contour(wks,p(3,:,:),res)plot3=gsn_csm_contour(wks,p(5,:,:),res)plot4=gsn_csm_contour(wks,p(7,:,:),res);Createapanelofplotswith2rowsand2columns... =f- =p@units=
;Read;Convertto;Updateunitswks=gsn_open_wks("ps" = ;Plotoptions
==
;Don'tdraw;Don'tadvance =True
绘 =new(4,graphic) plots(0)=gsn_csm_contour(wks,p(0,:,:),res)plots(1)=gsn_csm_contour(wks,p(3,:,:),res)plots(2)=gsn_csm_contour(wks,p(5,:,:),res)plots(3)=gsn_csm_contour(wks,p(7,:,:),res);2rows,2columns22x2What’sWhat’s“wrong”withthese数.. = ;PlotoptionsLevelSelectionMode=LevelSelectionMode==-=;=2plots(0)=gsn_csm_contour(wks,p(0,:,:),res)plots(1)=gsn_csm_contour(wks,p(3,:,:),res)plots(2)=gsn_csm_contour(wks,p(5,:,:),res)plots(3)=gsn_csm_contour(wks,p(7,:,:),res)...
= ;Plotoptions
===
;Don'tdraw;Don'tadvance;Turnon
=-=
;Setcontourlevels;thesameforeach=设置panel=设置panel=panel改变labelbar宽度 ="Perturbationpressure False关闭各个plot的plots=new(4,graphic)doi=0,3res@tiMainString="bottom-topindex"+i enddo;Createapanelofplotswith2rowsand2panelres@panelres@txString=22x3panelres@panelres@gsnPanelLabelBar=1行1行3pres@pres@gsnPanelFigureStrings="b_tindex"+3x2所有plots是一样大小么如果不是也许需要设res@gsnPanelDebug=res@gsnPanelBoxes=res@gsnPanelXF和/或使用vpXF/vpYF/vpWidthF/vpHeightF以替代PanelingClickon“panelingMoreLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelwks=
===
;don't;don'tadvance
Overlay矢量和等值线至地图 =
=“” =“”
;和矢量;
= =
=Trueres@gsnSpreadColors=True =
打开颜;spanfullcolor不绘制线
= =f- = =f- =f-speed=speed=;;;vectorref;lengthofvec ="CurlyVector";curlyvcres@vcRefMagnitudeF= = 将ref移至plot =contours=gsn_csm_contour( vectors=gsn_csm_vector(wks,u,v,vcres)contours= vectors=contours=vectors=OverlayCanalsogotothe“functions”linkonExamplespageandsearchfor“overlay”.LotsofexamplesusethisLine-by-lineXYplot–oneXYplot–multiplePositioningplotsonaUseof“frame”Useof ContourContourplotover
ContouringcurvilinearandunstructureddataWRFPanelFunctionres@tiXAxisString=“m~S~2”FunctioncodeNCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/or回 NCLGraphicsTheCommonmistakesandCreatingimagesforWeband/or可选但如果你在使用6.0或更高版本时,建议设置 “.hluresfile白background/黑::!Color : :Functioncode默 :!Setsizeofx11
::NCLGraphicsTheCustomizingNCLCreatingimagesforWeband/or忘记.hluresfile字体显示不对“xyLineColour”isnotaresourceinXyPlotatthis“TheunitsattributeoftheYcoordinatearrayisnotsettooneoftheallowableunitsvalues(i.e.'degrees_north').Yourlatitudelabelsmaynotbecorrect.”-正在使用的colormap中没有灰色(使用以增加灰色或者or“_NhlCreateSplineCoordApprox:AttempttocreatesplineapproximationforYaxisfailed:consideradjustingtrYTensionFvalue”NCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/or对于NCL否则,使用“batch”模式.即,写 ncl .以下地址 进一步检查数据使用print(min(xandprint(max(x));最大/
NCLGraphicsTheCustomizingNCLCommonmistakesand =wtype@wkWidth=2500;Defaultiswtype@wkHeight=wks=..如果“pngPSPDF“convertImageMagickMacportinstallLinuxyuminstallimagemagickapt-getinstallconvert–geometry2000x2000-density300-trim“-density300IntroductiontoNCL..filename=
=filename+=filename+
;PS(orPDF)file;PNGfilewks=res=..plot= 重要options=“–geometry2000x2000-density300-trimsystem(“convert”+options+psf+“”+NCLGraphicsTheCustomizingNCLCommonmistakesandCreatingimagesforWeband/orWheretoDownloadyourowndatasets mended)orusesampleWritesimplescriptstoreaddataandplotSeescriptsBrowse“Examples”onNCLReviewgraphicalexamplesusedinTrytheStartwritingyourownNCLForverybasicinformation,readFAQonNCLRefertoindexinbackofbookforwebIntroductiontoNCLExercises,datafiles,scriptsusedinMaryHaleyMaryHaleyWhatnew(graphical)thingsyoucandoinReadinexistingimagesandoverlayNCLgraphicsontopUsenamedcolorswithoutaddingthemtoyourcolormapUsemorethanonecolormap(colortable)perUsemorethan256colorsperres@xyLineColor=res@xyLineColor=colorswithbutthatcolormustbeinyourcolortable.Closestmatchisused,whichistheassociatedwithindex8inthe650650namedUseapredefinedcolorloadwks=gsn_open_wks("ps","color1”)Pickacolortablefromthecol
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026四上数学期末复习完整课件
- 2月住院医师规范化培训《胸心外科》模拟题含参考答案
- 校园雨水污水管网运维投标文件(技术标)
- 风力发电项目可行性研究报告模板
- 生产车间设备日常点检管理制度
- 2026医疗器械留样观察检验管理规程
- 大跨度钢节点焊接专项设计
- 高职建筑工程技术专业大三《桩基工程地下水控制设计与施工》高阶教案
- 探寻节日深意培育文化意识-初中英语七年级上册Unit8Reading教学设计(第二课时)
- 盲校高中语文(人教版·低视力版)高一必修上册 《师说》 知识清单
- 2026年浙江基层法律服务工作者执业核准考试试题及答案
- GB/T 33969-2026高炉富氧喷煤技术规范
- 2026年幼儿园课程故事培训会
- LY/T 1497-2025枣
- 2025年全国检察官遴选考试真题及参考答案
- 2026年事业单位考试国内核心时事政治考点梳理(附50题)
- 2026中国铌期货市场投资策略与价格波动研究报告
- 2019超高压输变电系统内部过电压分析与PSCAD EMTDC仿真应用
- 消除艾梅乙母婴传播培训
- 冶金安全评价标准考试试题及答案
- 2025年广州市天河区事业单位招聘考试真题及答案
评论
0/150
提交评论