<DIV>
<DIV><FONT size=4>Hi all:</FONT></DIV>
<DIV><FONT size=4>&nbsp;&nbsp; I am trying to make a&nbsp; plot with grib2 data(GFS),but it has warning and no picture appeared.</FONT></DIV>
<DIV><FONT size=4>&nbsp; warning: Entry (21) not found in code table file /public/software/mathlib/ncl_ncarg/6.1.0/gnu/lib/ncarg/grib2_codetables/ncep/4/4.2.0.0.table</FONT></DIV>
<DIV><FONT size=4>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=4>&nbsp; How can I slove the problem?</FONT></DIV>
<DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT style="LINE-HEIGHT: 30px" size=2>&nbsp;&nbsp; <FONT size=4>Or do you guys have some advice?</FONT></FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT style="LINE-HEIGHT: 30px" size=4>&nbsp;&nbsp; Any information will be appreciated.</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT size=4>&nbsp;&nbsp; This is my script:</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/skewt_func.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl"<BR>;*********************************************************<BR>begin<BR>&nbsp; f = addfile("/public/home/huanglei/data/2015080200//gfs.t00z.pgrb2.0p50.f000.grb","r")<BR>;********************************************************************</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"></SPAN>&nbsp;</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">&nbsp; prc&nbsp;&nbsp; = f-&gt;PWAT_P0_L200_GLL0<BR>;<BR>; The lat,lon coordinate points are only used in this<BR>; script to determine the area of the map to look at.<BR>; You could potentially use them to over this data<BR>; on a different map projection. See end of script.<BR>;<BR>&nbsp; lat2d = f-&gt;lat_0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;&nbsp; (g5_x_0, g5_y_1)<BR>&nbsp; lon2d = f-&gt;lon_0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;&nbsp; (g5_x_0, g5_y_1)</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">&nbsp; wks =gsn_open_wks("pdf","gfs_precip")<BR>&nbsp; gsn_define_colormap(wks,"BlAqGrYeOrReVi200")<BR>&nbsp; res = True<BR>&nbsp; <A href="mailto:res@gsnAddCyclic">res@gsnAddCyclic</A>&nbsp; = False<BR>&nbsp; <A href="mailto:res@gsnDraw">res@gsnDraw</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; don't draw yet<BR>&nbsp; <A href="mailto:res@gsnFrame">res@gsnFrame</A>&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; don't advance frame yet<BR>&nbsp; <A href="mailto:res@mpOutlineOn">res@mpOutlineOn</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Turn on map outlines<BR>&nbsp; <A href="mailto:res@mpGeophysicalLineColor">res@mpGeophysicalLineColor</A> = "Black"<BR>&nbsp; <A href="mailto:res@mpNationalLineColor">res@mpNationalLineColor</A>&nbsp;&nbsp;&nbsp; = "Black"<BR>&nbsp; <A href="mailto:res@mpDataSetName">res@mpDataSetName</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "Earth..4"<BR>&nbsp; <A href="mailto:res@mpDataBaseVersion">res@mpDataBaseVersion</A>&nbsp;&nbsp;&nbsp;&nbsp; = "MediumRes"<BR>&nbsp; <A href="mailto:res@mpOutlineSpecifiers">res@mpOutlineSpecifiers</A> = ("China:states")<BR>&nbsp; <A href="mailto:res@mpNationalLineThicknessF">res@mpNationalLineThicknessF</A>= 0.1<BR>&nbsp; <A href="mailto:res@mpOutlineDrawOrder">res@mpOutlineDrawOrder</A>&nbsp;&nbsp;&nbsp; = "PostDraw"<BR>&nbsp; <A href="mailto:res@mpLimitMode">res@mpLimitMode</A> = "LatLon"&nbsp;&nbsp;&nbsp; ; Limit the map view.<BR>;&nbsp; <A href="mailto:vcres@mpGeophysicalLineThicknessF">vcres@mpGeophysicalLineThicknessF</A> = 0.35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; double the thickness of geophysical boundaries<BR>;&nbsp; <A href="mailto:vcres@mpNationalLineThicknessF">vcres@mpNationalLineThicknessF</A>&nbsp;&nbsp;&nbsp; = 0.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; double the thickness of national boundaries</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">&nbsp; <A href="mailto:res@pmTickMarkDisplayMode">res@pmTickMarkDisplayMode</A> = "Always"<BR>&nbsp; <A href="mailto:res@mpMinLatF">res@mpMinLatF</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;驽扮含搴?<BR>&nbsp; <A href="mailto:res@mpMaxLatF">res@mpMaxLatF</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;驽ぇ绾害<BR>&nbsp; <A href="mailto:res@mpMinLonF">res@mpMinLonF</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 107&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;驽扮诲害<BR>&nbsp; <A href="mailto:res@mpMaxLonF">res@mpMaxLonF</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 110&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;驽ぇ缁搴?</SPAN></DIV><SPAN style="LINE-HEIGHT: 24px">
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><BR>;************************************************************************************************</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp;<A href="mailto:res@cnFillOn">res@cnFillOn</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn on color<BR>&nbsp;<A href="mailto:res@gsnSpreadColors">res@gsnSpreadColors</A> = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; use full colormap<BR>&nbsp;<A href="mailto:res@gsnSpreadColorStart">res@gsnSpreadColorStart</A> = 0<BR>&nbsp;<A href="mailto:res@gsnSpreadColorEnd">res@gsnSpreadColorEnd</A>&nbsp;&nbsp; = 199<BR>&nbsp;<A href="mailto:res@cnLinesOn">res@cnLinesOn</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn off contour lines<BR>&nbsp;<A href="mailto:res@cnLineLabelsOn">res@cnLineLabelsOn</A>&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; tuen off line labels<BR>&nbsp;<A href="mailto:res@cnInfoLabelOn">res@cnInfoLabelOn</A> =False</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">; <A href="mailto:res@cnLevelSelectionMode=%22ExplicitLevels">res@cnLevelSelectionMode="ExplicitLevels</A>"<BR>; <A href="mailto:res@cnLevels=(/14,18,22,26,30,34,38,42,46,50,52/">res@cnLevels=(/14,18,22,26,30,34,38,42,46,50,52/</A>)</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp; <A href="mailto:res@gsnLeftString">res@gsnLeftString</A> =""<BR>&nbsp; <A href="mailto:res@gsnRightString">res@gsnRightString</A> =""<BR>&nbsp;<A href="mailto:res@tiMainString">res@tiMainString</A> =""</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp;<A href="mailto:res@lbLabelBarOn">res@lbLabelBarOn</A> = False<BR>&nbsp;<A href="mailto:res@lbLabelStride">res@lbLabelStride</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; plot every other colar bar label<BR>&nbsp;<A href="mailto:res@lbOrientation">res@lbOrientation</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "vertical"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; vertical label bars</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp;</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp;&nbsp; prc=smth9(prc,0.5,0.25,False)</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><BR>&nbsp;plot = gsn_csm_contour_map(wks,prc,res)</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">frame(wks)</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">&nbsp; end<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></DIV></DIV></DIV>