[ncl-talk] 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
grace
313695096 at qq.com
Thu Nov 12 01:06:13 MST 2015
Hi all:
I am trying to make a plot with grib2 data(GFS),but it has warning and no picture appeared.
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
I tried to use ncl_convert2nc,it also have the warning:
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
This is my data:
How can I slove the problem?
Or do you guys have some advice?
Any information will be appreciated.
This is my script:
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/csm/skewt_func.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/wind_rose.ncl"
;*********************************************************
begin
f = addfile("/public/home/huanglei/data/2015080200//gfs.t00z.pgrb2.0p50.f000.grb","r")
;********************************************************************
prc = f->PWAT_P0_L200_GLL0
;
; The lat,lon coordinate points are only used in this
; script to determine the area of the map to look at.
; You could potentially use them to over this data
; on a different map projection. See end of script.
;
lat2d = f->lat_0 ; (g5_x_0, g5_y_1)
lon2d = f->lon_0 ; (g5_x_0, g5_y_1)
wks =gsn_open_wks("pdf","gfs_precip")
gsn_define_colormap(wks,"BlAqGrYeOrReVi200")
res = True
res at gsnAddCyclic = False
res at gsnDraw = False ; don't draw yet
res at gsnFrame = False ; don't advance frame yet
res at mpOutlineOn = True ; Turn on map outlines
res at mpGeophysicalLineColor = "Black"
res at mpNationalLineColor = "Black"
res at mpDataSetName = "Earth..4"
res at mpDataBaseVersion = "MediumRes"
res at mpOutlineSpecifiers = ("China:states")
res at mpNationalLineThicknessF= 0.1
res at mpOutlineDrawOrder = "PostDraw"
res at mpLimitMode = "LatLon" ; Limit the map view.
; vcres at mpGeophysicalLineThicknessF = 0.35 ; double the thickness of geophysical boundaries
; vcres at mpNationalLineThicknessF = 0.5 ; double the thickness of national boundaries
res at pmTickMarkDisplayMode = "Always"
res at mpMinLatF = 33 ;驽扮含搴?
res at mpMaxLatF = 35 ;驽ぇ绾害
res at mpMinLonF = 107 ;驽扮诲害
res at mpMaxLonF = 110 ;驽ぇ缁搴?
;************************************************************************************************
res at cnFillOn = True ; turn on color
res at gsnSpreadColors = True ; use full colormap
res at gsnSpreadColorStart = 0
res at gsnSpreadColorEnd = 199
res at cnLinesOn = False ; turn off contour lines
res at cnLineLabelsOn = False ; tuen off line labels
res at cnInfoLabelOn =False
; res at cnLevelSelectionMode="ExplicitLevels"
; res at cnLevels=(/14,18,22,26,30,34,38,42,46,50,52/)
res at gsnLeftString =""
res at gsnRightString =""
res at tiMainString =""
res at lbLabelBarOn = False
res at lbLabelStride = 2 ; plot every other colar bar label
res at lbOrientation = "vertical" ; vertical label bars
prc=smth9(prc,0.5,0.25,False)
plot = gsn_csm_contour_map(wks,prc,res)
frame(wks)
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151112/c2cc02f8/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 255656 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151112/c2cc02f8/attachment-0001.jpe
More information about the ncl-talk
mailing list