This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Patrick, There are a couple of things to check with your variable definitions: GDATTIM for model forecasts should be formatted as 1200F000 (for example) GDPFUN contains an extra left parentheses, and should be GDPFUN = SUB(LYR_MXMN(TMPC & MXOUT & HGHT|1000-100),HGHT@0%NONE) These two edits work on my end. -Michael > I'm attempting to use a SUB(LYR_MXMN()) function to compute the height of > the maximum temperature. It's returning the following error: > > GDFILE = /ldm/data/gempak/model/gfs/2010110818_gfs211.gem > GDATTIM = 1200 > GLEVEL = sfc > GVCORD = PRES > PANEL = 0 > SKIP = 0 > SCALE = 999 > GDPFUN = SUB((LYR_MXMN(TMPC & MXOUT & HGHT|1000-100),HGHT@0%NONE) > TYPE = C > CONTUR = 0 > CINT = 0 > LINE = 1 > FINT = 0 > FLINE = 10-20 > HILO = > HLSYM = > CLRBAR = > WIND = BM1 > REFVEC = > TITLE = 1 > TEXT = .9 > CLEAR = YES > GAREA = 24;-128;50;-65 > IJSKIP = > PROJ = MER > MAP = 1 > MSCALE = 0 > LATLON = > DEVICE = xw > STNPLT = > SATFIL = > RADFIL = > IMCBAR = > LUTFIL = > STREAM = > POSN = 0 > COLORS = 31 > MARKER = 0 > GRDLBL = 0 > FILTER = no > GEMPAK-GDPLOT2>gdpfun = SUB(LYR_MXMN(TMPC & MXOUT & HGHT|1000-100),HGHT@0 > %NONE) > GEMPAK-GDPLOT2>r > Number of times = 1 > 1 101108/1200 > > PARAMETERS FOR GDPLOT : FRAME NUMBER 1 INITIAL PLOT SETTINGS - > GDFILE=/ldm/data/gempak/model/gfs/2010110818_gfs211.gem, > GDATTIM=101108/1200 > GAREA=24;-128;50;-65, PROJ=MER, MAP=1, LATLON= > PANEL=0, TITLE=1 > OVERLAY TYPE LEVEL VCORD GRID FUNCTION > 1 C sfc PRES > SUB(LYR_MXMN(TMPC&MXOUT&HGHT|1000-100),HGHT@0%NONE) > [DL -5] No level found. > [DG -71] Layer field cannot be computed. > [GDPLOT 2] The requested scalar/vector cannot be computed. > Parameters requested: GDFILE,GDATTIM,GLEVEL,GVCORD,PANEL,SKIP,SCALE,GDPFUN, > TYPE,CONTUR,CINT,LINE,FINT,FLINE,HILO,HLSYM,CLRBAR,WIND,REFVEC,TITLE,TEXT, > CLEAR,GAREA,IJSKIP,PROJ,MAP,MSCALE,LATLON,DEVICE,STNPLT,SATFIL,RADFIL, > IMCBAR,LUTFIL,STREAM,POSN,COLORS,MARKER,GRDLBL,FILTER. > GEMPAK-GDPLOT2> > > Do you have any suggestions? > > Thanks, > Patrick Ealy > > Ticket Details =================== Ticket ID: UAU-979112 Department: Support GEMPAK Priority: Normal Status: Open