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.
Sounds like you got your script running....just not in the directory you had originally. If the program is exiting, verify that your gemglb.nts and last.nts files are writeable in that directory, could they be owned by another user? Also you may want to add "gpend" to the end of the script. Other things to check for are to not have any files in the directory called "gplt". Steve Chiswell Unidata User Support >From: "Gahrs, Greg" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200202242001.g1OK1Jx04270 > >--------------060308030206020906060704 >Content-Type: text/plain; charset=us-ascii; format=flowed >Content-Transfer-Encoding: 7bit > >Hello, > >After doing some work with the following script; I realized that gempak >was prematurely exiting only in this directory. I do not know why this >was happening. > >Greg > >-------- Original Message -------- >Subject: GEMPAK script problem >Date: Fri, 22 Feb 2002 19:19:02 -0500 >From: Greg Gahrs <mailto:address@hidden> <address@hidden> >To: Unidata Support <mailto:address@hidden> ><address@hidden> > > >Hello, > > > >I have written the following script called fill06ngm with the > >expectation that it write 6 different grid variables to a surface file. > > >However, it appears as though that it is writing only the first > >variable, and ignoring the other 5 variables. The entire output follows > > >the script file. Do you have any recommendations? Thanks for your help. > > > >Greg > > > > > > > >________________________________________________________________________ >_______________ > >#!/bin/csh > >set gparm = ( hght@1000%pres <mailto:hght@1000%pres> hght@950%pres ><mailto:hght@950%pres> hght@850%pres <mailto:hght@850%pres> >hght@700%pres <mailto:hght@700%pres> > >hght@500%pres <mailto:hght@500%pres> hght@300%pres ><mailto:hght@300%pres> ) > >set sparm = (gp10 gp95 gp85 gp70 gp50 gp30) > > gdgsfc << EOF > > gdfile = /hd5/gahrs/99jan/99011000_ngm.gem > > gdattim = 990110/0000f00 > > gvcord = > > glevel = > > gfunc = $gparm[1] > > scale = 0 > > sffile = ngm0000f009901.sfc > > sfparm = $sparm[1] > > r > > > > gfunc = $gparm[2] > > sfparm = $sparm[2] > > r > > > > gfunc = $gparm[3] > > sfparm = $sparm[3] > > r > > > > gfunc = $gparm[4] > > sfparm = $sparm[4] > > r > > > > gfunc = $gparm[5] > > sfparm = $sparm[5] > > r > > > > gfunc = $gparm[6] > > sfparm = $sparm[6] > > r > > > > e > >EOF > >__________________________________________________________________ > > > > > > > > > >/hd4/gahrs/set2>fill06ngm > >GDFILE Grid file > >/hd5/gahrs/99jan/99011000_ngm.gem > >GDATTIM Grid date/time 990110/0000f00 > >GVCORD Grid vertical coordinate > >GLEVEL Grid level > >GFUNC Scalar grid hght@1000%pres ><mailto:hght@1000%pres> > >SCALE Scalar scale / vector scale 0 > >SFFILE Surface data file sfcfile/ngm0000f009901.sfc > >SFPARM Surface parameter list gp10 > >Parameters requested: GDFILE,GDATTIM,GVCORD,GLEVEL,GFUNC,SCALE,SFFILE, > >SFPARM. > >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> > >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> > >GEMPAK-GDGSFC>Creating process: gplt for queue 17 > >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> > >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> >GEMPAK-GDGSFC> > >Grid file: /hd5/gahrs/99jan/99011000_ngm.gem > > > > >GRID IDENTIFIER: > > TIME1 TIME2 LEVL1 LEVL2 VCORD PARM > >990110/0000F000 1000 PRES HGHT > > > > SCALE: 0 > > > >File: SFCFILE/NGM0000F009901.SFC > > > > > >Time: 990110/0000 > > > >Parameter: GP10 > > > > > >/hd4/gahrs/set2> > > > > > >-- > > -------------------------------------- > >| Greg Gahrs, address@hidden <mailto:address@hidden> | > >| Geophysical Fluid Dynamics Institute | > >| 18 Keen Building | > >| Florida State University | > >| Tallahassee FL, 32306-4360 | > >| (850) 644-6085 | > > -------------------------------------- > > > >-- > > -------------------------------------- > >| Greg Gahrs, address@hidden <mailto:address@hidden> | > >| Geophysical Fluid Dynamics Institute | > >| 18 Keen Building | > >| Florida State University | > >| Tallahassee FL, 32306-4360 | > >| (850) 644-6085 | > > -------------------------------------- > >--------------060308030206020906060704 >Content-Type: text/html; charset=us-ascii >Content-Transfer-Encoding: 7bit > ><html><head></head><body>Hello,<br> ><br> >After doing some work with the following script; I realized that gempak was >prematurely exiting only in this directory. I do not know why this was h > appening.<br> ><br> >Greg<br> ><br> >-------- Original Message -------- ><table cellpadding="0" cellspacing="0" border="0"> ><tbody><tr><th valign="Baseline" align="Right" nowrap="">Subject: </th><td>GEM > PAK script problem</td></tr><tr><th valign="Baseline" align="Right" nowrap="" > >Date: </th><td>Fri, 22 Feb 2002 19:19:02 -0500</td></tr><tr><th valign="Base > line" align="Right" nowrap="">From: </th><td>Greg Gahrs <a class="moz-txt-lin > k-rfc2396E" href="mailto:address@hidden"><address@hidden></a></ > td></tr><tr><th valign="Baseline" align="Right" nowrap="">To: </th><td>Unidat > a Support <a class="moz-txt-link-rfc2396E" href="mailto:address@hidden. > edu"><address@hidden></a></td></tr></tbody> ></table> ><br> ><br> ><pre>Hello, > >I have written the following script called fill06ngm with the >expectation that it write 6 different grid variables to a surface file. >However, it appears as though that it is writing only the first >variable, and ignoring the other 5 variables. The entire output follows >the script file. Do you have any recommendations? Thanks for your help. > >Greg > > > >______________________________________________________________________________ > _________ >#!/bin/csh >set gparm = (<a class="moz-txt-link-abbreviated" href="mailto:hght@1000%pres"> > hght@1000%pres</a> <a class="moz-txt-link-abbreviated" href="mailto:hght@950% > pres">hght@950%pres</a> <a class="moz-txt-link-abbreviated" href="mailto:hght > @850%pres">hght@850%pres</a> <a class="moz-txt-link-abbreviated" href="mailto > :hght@700%pres">hght@700%pres</a> ><a class="moz-txt-link-abbreviated" href="mailto:hght@500%pres">hght@500%pres< > /a> <a class="moz-txt-link-abbreviated" href="mailto:hght@300%pres">hght@300% > pres</a>) >set sparm = (gp10 gp95 gp85 gp70 gp50 gp30) > gdgsfc << EOF > gdfile = /hd5/gahrs/99jan/99011000_ngm.gem > gdattim = 990110/0000f00 > gvcord = > glevel = > gfunc = $gparm[1] > scale = 0 > sffile = ngm0000f009901.sfc > sfparm = $sparm[1] > r > > gfunc = $gparm[2] > sfparm = $sparm[2] > r > > gfunc = $gparm[3] > sfparm = $sparm[3] > r > > gfunc = $gparm[4] > sfparm = $sparm[4] > r > > gfunc = $gparm[5] > sfparm = $sparm[5] > r > > gfunc = $gparm[6] > sfparm = $sparm[6] > r > > e >EOF >__________________________________________________________________ > > > > >/hd4/gahrs/set2>fill06ngm >GDFILE Grid file >/hd5/gahrs/99jan/99011000_ngm.gem >GDATTIM Grid date/time 990110/0000f00 >GVCORD Grid vertical coordinate >GLEVEL Grid level >GFUNC Scalar grid <a class="moz-txt-link-abbreviated > " href="mailto:hght@1000%pres">hght@1000%pres</a> >SCALE Scalar scale / vector scale 0 >SFFILE Surface data file sfcfile/ngm0000f009901.sfc >SFPARM Surface parameter list gp10 >Parameters requested: GDFILE,GDATTIM,GVCORD,GLEVEL,GFUNC,SCALE,SFFILE, >SFPARM. >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> >GEMPAK-GDGSFC>Creating process: gplt for queue 17 >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> >GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK-GDGSFC> GEMPAK > -GDGSFC> >Grid file: /hd5/gahrs/99jan/99011000_ngm.gem > >GRID IDENTIFIER: > TIME1 TIME2 LEVL1 LEVL2 VCORD PARM >990110/0000F000 1000 PRES HGHT > > SCALE: 0 > >File: SFCFILE/NGM0000F009901.SFC > >Time: 990110/0000 > >Parameter: GP10 > >/hd4/gahrs/set2> > > >-- > -------------------------------------- >| Greg Gahrs, <a class="moz-txt-link-abbreviated" href="mailto:address@hidden. > edu">address@hidden</a> | >| Geophysical Fluid Dynamics Institute | >| 18 Keen Building | >| Florida State University | >| Tallahassee FL, 32306-4360 | >| (850) 644-6085 | > -------------------------------------- > ></pre> ><br> ><pre class="moz-signature">-- > -------------------------------------- >| Greg Gahrs, <a class="moz-txt-link-abbreviated" href="mailto:address@hidden. > edu">address@hidden</a> | >| Geophysical Fluid Dynamics Institute | >| 18 Keen Building | >| Florida State University | >| Tallahassee FL, 32306-4360 | >| (850) 644-6085 | > --------------------------------------</pre> ></body></html> >--------------060308030206020906060704-- >