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.
Giovanni, The compile time line length is define in $GEMPAK/include under LLMXLN which is 128 characters (GEMPRM.PRM and gemprm.h). In your case below, if you are just missing the "l" at the end of PMSL, you can shorten the line 2 characters by not typing spaced after GDPFUN, "=" and your expression. The only way around recompiling with a larger LLMXLN is to use GDDIAG and compute terms of a larger equation, and then combine those terms in your final expression. For example you could compute TERMA = LT(ldf(hght%pres@500:1000),5550), TERMB = LT(lav(tmpc%hght@2:1829),2), etc, and then in your plot use GDPFUN=AND(TERMA,TERMB, etc) Steve Chiswell Unidata User Support > Hello Steve, > > I'm using gdplot3 gdpfun. > I'm trying to plot only one field that is a combination of different > conditions. > > My gdpfun line is: > gdpfun = AND(LT(ldf(hght%pres@500:1000),5550),LT(lav(tmpc% > hght@2:1829),2),GT(relh@2%hght,80),LT(tmpc%hght@2,5),GT(omeg% > pres@700,0)) !pmsl > > But GEMPAK can olnly read this line until column 138. > GEMPAK produces the following message: > > PARAMETERS FOR GDPLOT : FRAME NUMBER 1 INITIAL PLOT SETTINGS - > GDFILE=gfshd|12, GDATTIM=070713/1200F000 > GAREA=-50;-75;-20;-40, PROJ=CED, MAP=1//2+1//2, LATLON=1/10/1/1/5;5 > 2C , RELH2m > 80%, T2m < 5C ) > OVERLAY TYPE LEVEL VCORD GRID FUNCTION > 1 F 2 HGHT AND(LT(LDF(HGHT% > PRES@500:1000),5550),LT(LAV(TMPC%HGHT@2:1829),2),GT(RELH@2% > HGHT,80),LT(TMPC%HGHT@2,5),GT(OMEG%PRES@700,0)) > 2 C 0 NONE PMS > [DG -7] Input grid PMS ^070713/1200F000 @0 %NONE cannot be found. > [GDPLOT 2] The requested scalar/vector cannot be computed. > > > Is there a limit for gdpfun string? > How can I use "AND" function with many arguments resulting in more than > 138 columns? > > Thanks > > -- > Giovanni Dolif > Meteorologist, Msc. and Ph.D. Student > National Institute for Space Research (INPE) > Weather Forecast and Climate Studies Center (CPTEC) > km 40, Rod. Pres. Dutra > 12630-000, Cachoeira Paulista, SP, Brazil > Phone: +55 (12) 3186-8400 > FAX: +55 (12) 3101-2835 > http://www.inpe.br/ingles/index.php > http://www.cptec.inpe.br/ > > Ticket Details =================== Ticket ID: VRM-532688 Department: Support GEMPAK Priority: Normal Status: Closed