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.
Matt, If I read you script correctly below, you need a blank line between the run and exit commands for your script. at the point where you give the run command, gddiag will prompt you for a carriage return to accept, or exit to abort- so your exit is aborting the function from being run. Try: r exit Steve Chiswell Unidata User SUpport >From: "Matthew G. Fearon" <address@hidden> >Organization: Desert Research Institute >Keywords: 199912062301.QAA18453 >Steve, > >I am computing a mixing ratio grid from a gempak grid file >using gddiag and trying to store the grid in the same grid file. >gddiag seems to work fine, but the computed grid does not show >up in the gempak grid file when I look at the grids using gdinfo. >There is plenty of room to add additional grids to the file. >Here is my program below: > >$GEMEXE/gddiag <<EOF > gdfile = /data1/gempak/grids/oldgrid/99102100_eta.gem > gdoutf = /data1/gempak/grids/oldgrid/99102100_eta.gem > gfunc = mixr(tmpc@2%hagl,pres) > gdattim = f00 > glevel = 0 > gvcord = none > grdnam = mixr > gpack = none > r >exit > >EOF > >$GEMEXE/gpend >rm *.nts > >It seems like I am forgetting to do something, but I am not sure >what. I would appreciate your suggestions when you have a >few minutes. > >Thank you, >Matt Fearon >address@hidden >