[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20020224: [Fwd: GEMPAK script problem] - Update



Greg,

You didn't show how you created the surface file first with sfcfil,
so you should review that to make sure you have allowed room
for all 6 parameters:

 SFOUTF    Output surface file               testme.sfc
 SFPRMF    Surface parameter packing file    gp10;gp95;gp85;gp70;gp50;gp30
 STNFIL    Station information file          sfmetar_sa.tbl
 SHIPFL    Ship data file flag               no
 TIMSTN    Times/additional stations         72/0
 SFFSRC    Surface file source                
 Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
 GEMPAK-SFCFIL>

I created the above file withe the sfprmf list:
gp10;gp95;gp85;gp70;gp50;gp30

Then created the script you are trying to run
(your copy attatched below was munged by your mail program with
a bunch of "mailto:"; html directrives in the gparm lists. 

You may want to check your gparm variable line to make sure it is all on one 
line, or
you have enclosed the variables with "" and escaped the line continuation. 

#!/bin/csh

set gparm = ( hght@1000%pres hght@950%pres hght@850%pres hght@700%pres 
hght@500%pres hght@300%pres )

set sparm = (gp10 gp95 gp85 gp70 gp50 gp30)
  gdgsfc << EOF
   gdfile = ngm
   gdattim = f000
   gvcord =
   glevel =
   gfunc = $gparm[1]
   scale = 0
   sffile = testme.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

I ran the script and was able to print out values for a station:

 SFFILE    Surface data file                 testme.sfc
 AREA      Data area                         @den
 DATTIM    Date/time                         all
 SFPARM    Surface parameter list            dset
 OUTPUT    Output device/filename            t
 IDNTYP    STNM or STID                      stid
 Parameters requested: SFFILE,AREA,DATTIM,SFPARM,OUTPUT,IDNTYP.
 GEMPAK-SFLIST>r
 PARM = GP10;GP95;GP85;GP70;GP50;GP30                                           
 

    STN    YYMMDD/HHMM      GP10     GP95     GP85     GP70     GP50     GP30
    DEN    020223/0000    119.96   545.45  1496.03  3105.58  5739.80  9404.05



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.&nbsp; 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";>&lt;address@hidden&gt;</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">&lt;address@hidden&gt;</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 &lt;&lt; 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&gt;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&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; 
>GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; 
>GEMPAK-GDGSFC&gt;Creating process: gplt for queue 17
>GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; 
>GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK-GDGSFC&gt; GEMPAK
> -GDGSFC&gt;
>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&gt;
>
>
>-- 
> --------------------------------------
>| 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--
>