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

20020225: GEMPAK:Problems with SFCFIL



Patrick,

It sounds like your script is working in a directory that you don't have
write access to if the file can't be created, and the last.nts file can't
be written over. Cee if you are using "cd" or referncing any directories
using environment variables not being inherited.

You didn't include the script so I can't see if you are trying to change 
working 
directories or using any environmental variables that your script 
isn't inhreriting from your environment.

However, sfgram can open more than 1 surface file to create a meteorogram
that spans days- so you may not need to be doing what you are. For example,
The following will plot a 2 day plot:
 SFFILE   = metar
 DATTIM   = 24/0000-26/0000
 STATION  =  
 TRACE1   = tmpf:1:2;dwpf:1:2/2;3
 TRACE2   = ;vsby::2/8;4!pmsl::2;;/28
 TRACE3   = ;darr:1:2;sknt:1:2/1;22;12!gust/5
 TRACE4   = clds;skyk:.6:2/15;6!;;wsym:1:1/3
 TRACE5   = stha:1:2;sthe:1:2/22;19
 NTRACE   = 5
 TAXIS    =  
 BORDER   = 2/1/2
 MARKER   = 0
 TITLE    = 1/0
 CLEAR    = y
 DEVICE   = xw
 PANEL    = 0
 TEXT     = .8//1.5/sw
 GEMPAK-SFGRAM>station = den
 GEMPAK-SFGRAM>r
Creating process: gplt for queue 5102
Creating process: xw for queue 1654
 SFGRAM PARAMETERS

 Surface file:       $GEMDATA/surface/20020224_sao.gem
 Number of times:     136
 Time range:         020224/00-25/21                                 
 Traces: 
     DEN       tmpf:1:2;dwpf:1:2/2;3
     DEN       ;vsby::2/8;4!pmsl::2;;/28
     DEN       ;darr:1:2;sknt:1:2/1;22;12!gust/5
     DEN       clds;skyk:.6:2/15;6!;;wsym:1:1/3
     DEN       stha:1:2;sthe:1:2/22;19
   
Enter <cr> to accept parameters or type EXIT:
 Parameters requested: SFFILE,DATTIM,STATION,TRACE1,TRACE2,TRACE3,TRACE4,
 TRACE5,NTRACE,TAXIS,BORDER,MARKER,TITLE,CLEAR,DEVICE,PANEL,TEXT.
 GEMPAK-SFGRAM>

Also, try looking at:
http://www.unidata.ucar.edu/glimpse/gempak/4841

Steve Chiswell

>From: "Patrick O'Reilly" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200202251955.g1PJtAx22479

>This is a multi-part message in MIME format.
>
>------=_NextPart_000_004B_01C1BE03.EE068AB0
>Content-Type: text/plain;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Hello,
>
>I have read everything I can to help fix this problem but have come up =
>blank.  I am trying to get a meteogram script running, which I found =
>examples of.  Problem is, I can't even get sfcfil to work, except by =
>hand.  I am trying to create a surface file, put the last two days data =
>into it, and create meteograms hourly.  But this won't work if I can't =
>even create the file in the first place.  I actually CAN create it by =
>hand, but when I run the script, using the same restore file, it doesn't =
>work.  Examples are below, which are run from the same subdirectory in =
>the GEMPAK home directory ( so write permissions aren't an issue). =20
>
>Running sfcfil by hand:
>
>[gempak@cirrus]#sfcfil
> SFOUTF    Output surface file               sfgram.gem
> SFPRMF    Surface parameter packing file    $GEMTBL/pack/hrly.pack
> STNFIL    Station information file          =
>/export/home/gempak/scripts/sfstns.tbl
> SHIPFL    Ship data file flag               no
> TIMSTN    Times/additional stations         48/15000
> SFFSRC    Surface file source               airw|text
> Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
> GEMPAK-SFCFIL>restore sfcfil_mgram.settings
> GEMPAK-SFCFIL>run
>
> SFCFIL PARAMETERS:
>
> New surface file:      sfgram.gem
> Parameter file:        $GEMTBL/pack/hrly.pack
> Station file:
> Number of stations in STNFIL:    3311
> Number of additional stations:  15000
> Total number of stations:       18311
> Total number of times:             48
>
> This file will be a standard surface file.
>
>Enter <cr> to accept parameters or type EXIT:
> The file has been created.
> Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
> GEMPAK-SFCFIL>exit
>
>Now, running the script, from the same directory, using the same restore =
>file:
>
>[gempak@cirrus]#./test_meteograms
> SFOUTF    Output surface file               sfgram.gem
> SFPRMF    Surface parameter packing file    $GEMTBL/pack/hrly.pack
> STNFIL    Station information file          =
>/export/home/gempak/scripts/SFSTNS.TBL
> SHIPFL    Ship data file flag               NO
> TIMSTN    Times/additional stations         48
> SFFSRC    Surface file source               AIRW|TEXT
> Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
> GEMPAK-SFCFIL> [IP -9]  The save file SFCFIL_MGRAM.SETTINGS is invalid.
> GEMPAK-SFCFIL> GEMPAK-SFCFIL> [IP -9]  The save file LAST.NTS is =
>invalid.
>
> SFCFIL PARAMETERS:
>
> New surface file:      sfgram.gem
> Parameter file:        $GEMTBL/pack/hrly.pack
> Station file:
> Number of stations in STNFIL:    3311
> Number of additional stations:      0
> Total number of stations:        3311
> Total number of times:             48
>
> This file will be a standard surface file.
>
>Enter <cr> to accept parameters or type EXIT: [FL -3]  Cannot create =
>file sfgram.gem.
> [DM -1]  File sfgram.gem cannot be created.
> [SF -1]  File sfgram.gem could not be created.
> [SF -3]  File is not open.
> Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
> GEMPAK-SFCFIL> [IP -1]  Global file cannot be opened for write access.
>
>Can you clue me into why it won't work with the script?  Why the =
>messages about the .settings and .nts files being invalid, when I just =
>used one to create a file by hand a moment before?  I am quite lost as =
>to why it won't work.  It must be something so simple, I'm overlooking =
>it.  Thanks for your help once again.
>
>Patrick
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Patrick O'Reilly                               Support Scientist
>The STORM Project            address@hidden
>208 Latham Hall                             ph: 319-273-3789
>University of Northern Iowa
>Cedar Falls, IA 50614            =20
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  =20
>
>
>------=_NextPart_000_004B_01C1BE03.EE068AB0
>Content-Type: text/html;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#efefef>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Hello,</FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>I have read everything I can =
>to help fix=20
>this problem but have come up blank.&nbsp; I am trying to get a =
>meteogram script=20
>running, which I found examples of.&nbsp; Problem is, I can't even get =
>sfcfil to=20
>work, except by hand.&nbsp; I am trying to create a surface file, put =
>the last=20
>two days data into it, and create meteograms hourly.&nbsp; But this =
>won't work=20
>if I can't even create the file in the first place.&nbsp; I actually CAN =
>create=20
>it by hand, but when I run the script, using the same restore file, it =
>doesn't=20
>work.&nbsp; Examples are below, which are run from the same subdirectory =
>in the=20
>GEMPAK home directory ( so write permissions aren't an issue).&nbsp;=20
></FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Running sfcfil by =
>hand:</FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif"=20
>size=3D2>[gempak@cirrus]#sfcfil<BR>&nbsp;SFOUTF&nbsp;&nbsp;&nbsp; Output =
>surface=20
>file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;&nbsp;=20
>sfgram.gem<BR>&nbsp;SFPRMF&nbsp;&nbsp;&nbsp; Surface parameter packing=20
>file&nbsp;&nbsp;&nbsp; =
>$GEMTBL/pack/hrly.pack<BR>&nbsp;STNFIL&nbsp;&nbsp;&nbsp;=20
>Station information =
>file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>/export/home/gempak/scripts/sfstns.tbl<BR>&nbsp;SHIPFL&nbsp;&nbsp;&nbsp; =
>Ship=20
>data file=20
>flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;&nbsp;=20
>no<BR>&nbsp;TIMSTN&nbsp;&nbsp;&nbsp; Times/additional=20
>stations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>48/15000<BR>&nbsp;SFFSRC&nbsp;&nbsp;&nbsp; Surface file=20
>source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;&nbsp;&nbsp;=20
>airw|text<BR>&nbsp;Parameters requested:=20
>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR>&nbsp;GEMPAK-SFCFIL&gt;rest=
>ore=20
>sfcfil_mgram.settings<BR>&nbsp;GEMPAK-SFCFIL&gt;run</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;SFCFIL =
>PARAMETERS:</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;New surface=20
>file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sfgram.gem<BR>&nbsp;Parameter=20
>file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>$GEMTBL/pack/hrly.pack<BR>&nbsp;Station file:<BR>&nbsp;Number of =
>stations in=20
>STNFIL:&nbsp;&nbsp;&nbsp; 3311<BR>&nbsp;Number of additional =
>stations:&nbsp;=20
>15000<BR>&nbsp;Total number of =
>stations:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>18311<BR>&nbsp;Total number of=20
>times:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;=20
>48</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;This file will be a =
>standard=20
>surface file.</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Enter &lt;cr&gt; to accept =
>parameters or=20
>type EXIT:<BR>&nbsp;The file has been created.<BR>&nbsp;Parameters =
>requested:=20
>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR>&nbsp;GEMPAK-SFCFIL&gt;exit=
><BR></FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Now, running the script, from =
>the same=20
>directory, using the same restore file:</FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif"=20
>size=3D2>[gempak@cirrus]#./test_meteograms<BR>&nbsp;SFOUTF&nbsp;&nbsp;&nb=
>sp;=20
>Output surface=20
>file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;&nbsp;=20
>sfgram.gem<BR>&nbsp;SFPRMF&nbsp;&nbsp;&nbsp; Surface parameter packing=20
>file&nbsp;&nbsp;&nbsp; =
>$GEMTBL/pack/hrly.pack<BR>&nbsp;STNFIL&nbsp;&nbsp;&nbsp;=20
>Station information =
>file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>/export/home/gempak/scripts/SFSTNS.TBL<BR>&nbsp;SHIPFL&nbsp;&nbsp;&nbsp; =
>Ship=20
>data file=20
>flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;&nbsp;=20
>NO<BR>&nbsp;TIMSTN&nbsp;&nbsp;&nbsp; Times/additional=20
>stations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>48<BR>&nbsp;SFFSRC&nbsp;&nbsp;&nbsp; Surface file=20
>source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;&nbsp;&nbsp;=20
>AIRW|TEXT<BR>&nbsp;Parameters requested:=20
>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR>&nbsp;GEMPAK-SFCFIL&gt; =
>[IP=20
>-9]&nbsp; The save file SFCFIL_MGRAM.SETTINGS is=20
>invalid.<BR>&nbsp;GEMPAK-SFCFIL&gt; GEMPAK-SFCFIL&gt; [IP -9]&nbsp; The =
>save=20
>file LAST.NTS is invalid.</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;SFCFIL =
>PARAMETERS:</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;New surface=20
>file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sfgram.gem<BR>&nbsp;Parameter=20
>file:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>$GEMTBL/pack/hrly.pack<BR>&nbsp;Station file:<BR>&nbsp;Number of =
>stations in=20
>STNFIL:&nbsp;&nbsp;&nbsp; 3311<BR>&nbsp;Number of additional=20
>stations:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<BR>&nbsp;Total number of=20
>stations:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3311<BR>&nbsp;Total =
>number=20
>of=20
>times:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;=20
>48</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>&nbsp;This file will be a =
>standard=20
>surface file.</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Enter &lt;cr&gt; to accept =
>parameters or=20
>type EXIT: [FL -3]&nbsp; Cannot create file sfgram.gem.<BR>&nbsp;[DM =
>-1]&nbsp;=20
>File sfgram.gem cannot be created.<BR>&nbsp;[SF -1]&nbsp; File =
>sfgram.gem could=20
>not be created.<BR>&nbsp;[SF -3]&nbsp; File is not =
>open.<BR>&nbsp;Parameters=20
>requested: =
>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR>&nbsp;GEMPAK-SFCFIL&gt;=20
>[IP -1]&nbsp; Global file cannot be opened for write =
>access.</FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Can you clue me into why it =
>won't work=20
>with the script?&nbsp; Why the messages about the .settings and .nts =
>files being=20
>invalid, when I just used one to create a file by hand a moment =
>before?&nbsp; I=20
>am quite lost as to why it won't work.&nbsp; It must be something so =
>simple, I'm=20
>overlooking it.&nbsp; Thanks for your help once again.</FONT></DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif" size=3D2>Patrick</FONT><FONT =
>face=3D"MS Sans Serif"=20
>size=3D2></DIV></FONT>
><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3D"MS Sans Serif"=20
>size=3D2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>Patrick=20
>O'Reilly&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
>Support Scientist<BR>The STORM=20
>Project&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> <A=20
>href=3D"mailto:address@hidden";>address@hidden</A><BR>20=
>8 Latham=20
>Hall&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
>sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
>p;&nbsp;&nbsp;&nbsp;&nbsp;=20
>ph: 319-273-3789<BR>University of Northern Iowa<BR>Cedar Falls, IA=20
>50614&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
>bsp;=20
><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&nbsp;&nbsp;=20
><BR></FONT></DIV></BODY></HTML>
>
>------=_NextPart_000_004B_01C1BE03.EE068AB0--
>