[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020227: 20020225: GEMPAK:Problems with SFCFIL
- Subject: 20020227: 20020225: GEMPAK:Problems with SFCFIL
- Date: Wed, 27 Feb 2002 10:18:46 -0700
At this point in time, the functionality of opening multimple files
is limited to sfgram
Version 5.6.D release notes:
VI. General Improvements
A. SFGRAM Enhancements (ALL)
The SFGRAM program has been improved in two ways.
First, a file template may be specified explicitly for the SFFILE
variable. For example, SFFILE = YYMMDD.hrly opens the appropriate
file(s) that match this template corresponding to the specified DATTIM.
Second, SFGRAM can now open more than one surface file. Multiple
file access requires an explicit template for SFFILE or an alias
specified in the table $GEMTBL/config/datatype.tbl.
For example, if METAR data are stored in daily files, and the
datatype.tbl contains an entry METAR for the METAR files, then the
following provides a meteogram from 12z, May 15th through 12z,
May 16th:
SFFILE = METAR
DATTIM = 15/12-16/12
excerpted in:
http://www.unidata.ucar.edu/packages/gempak/GEMPAK5.6/whats_new.html#5.6D
Steve Chiswell
>From: "Patrick O'Reilly" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200202271627.g1RGRjx07138
>Steve,
>
>You are right, I was doing too much work, simply specifying "metar" as
>sffile works. Should this work for all surface programs? In SFL604, I
>specify a range of times and metar as the sffile but I only get today's
>data:
>
>[gempak@cirrus]#sfl604
> GEMPAK-SFL604>d
> SFFILE Surface data file metar
> AREA Data area @alo
> DATTIM Date/time 020226/1600-020227/1600
> OUTPUT Output device/filename t
> SKPMIS Skip missing data flag yes
> IDNTYP STNM or STID stid
> SFPARM Surface parameter list text;spcl
> GEMPAK-SFL604>r
>
> HH STN CLDL CLDM CLDH VSBY WTHR PMSL TMP DWP DDSS GST ALT PTND
>PCPN SN
> 020227/
> 00 ALO 32O 3.0 S- 1020.0 17 12 3020 24 30.07 0.6 T
> 01 ALO 48O 3.0 S- 1020.3 16 11 3119 24 30.08
> 02 ALO 48O 6.0 S- 1020.3 15 10 3116 30.08
> 03 ALO 50O 6.0 S- 1020.3 15 10 3016 20 30.08 0.2 T
> 04 ALO 47O 8.0 UP 1020.1 14 9 3117 22 30.07
> 05 ALO 47O 9.0 1020.0 14 8 3117 30.07
> 06 ALO 60O 5.0 S- 1020.0 13 8 3015 30.07 -0.3 T
> 07 ALO 16S 10.0 1020.0 12 6 30 9 30.07
> 08 ALO C 10.0 1020.1 11 4 29 9 30.08
> 09 ALO C 10.0 1020.1 10 3 30 9 30.07 0.1 T
> 10 ALO C 10.0 1020.2 9 2 3011 30.08
> 11 ALO C 10.0 1020.3 8 2 30 8 30.08
> 12 ALO C 10.0 1020.8 8 1 29 9 30.09 0.6
> 13 ALO C 10.0 1021.3 7 2 3010 30.11
> 14 ALO C 10.0 1022.0 8 2 3011 30.13
> 15 ALO C 10.0 1022.1 11 2 3114 30.13 1.3
> 16 ALO C 10.0 1022.5 13 4 3113 30.14
> Parameters requested: SFFILE,AREA,DATTIM,OUTPUT,SKPMIS,IDNTYP,SFPARM.
> GEMPAK-SFL604>exit
>
>Should this work the same way as does the sfgram program?
>
>Thanks again,
>
>Patrick
>
>----- Original Message -----
>From: "Unidata Support" <address@hidden>
>To: "Patrick O'Reilly" <address@hidden>
>Cc: "Unidata Support" <address@hidden>
>Sent: Monday, February 25, 2002 2:35 PM
>Subject: 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> </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. I am trying to get a =
>> >meteogram script=20
>> >running, which I found examples of. Problem is, I can't even get =
>> >sfcfil to=20
>> >work, except by hand. I am trying to create a surface file, put =
>> >the last=20
>> >two days data into it, and create meteograms hourly. But this =
>> >won't work=20
>> >if I can't even create the file in the first place. I actually CAN
>=
>> >create=20
>> >it by hand, but when I run the script, using the same restore file, it =
>> >doesn't=20
>> >work. Examples are below, which are run from the same subdirectory
>=
>> >in the=20
>> >GEMPAK home directory ( so write permissions aren't an issue). =20
>> ></FONT></DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT> </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> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif"=20
>> >size=3D2>[gempak@cirrus]#sfcfil<BR> SFOUTF Output
>=
>> >surface=20
>>
>>file &nb=
>> >sp; =20
>> >sfgram.gem<BR> SFPRMF Surface parameter packing=20
>> >file =
>> >$GEMTBL/pack/hrly.pack<BR> STNFIL =20
>> >Station information =
>> >file =20
>> >/export/home/gempak/scripts/sfstns.tbl<BR> SHIPFL
>=
>> >Ship=20
>> >data file=20
>>
>>flag &nb=
>> >sp; =20
>> >no<BR> TIMSTN Times/additional=20
>> >stations =20
>> >48/15000<BR> SFFSRC Surface file=20
>>
>>source &=
>> >nbsp; =20
>> >airw|text<BR> Parameters requested:=20
>>
>>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR> GEMPAK-SFCFIL>rest=
>> >ore=20
>> >sfcfil_mgram.settings<BR> GEMPAK-SFCFIL>run</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> SFCFIL =
>> >PARAMETERS:</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> New surface=20
>> >file: sfgram.gem<BR> Parameter=20
>> >file: =20
>> >$GEMTBL/pack/hrly.pack<BR> Station file:<BR> Number of =
>> >stations in=20
>> >STNFIL: 3311<BR> Number of additional =
>> >stations: =20
>> >15000<BR> Total number of =
>> >stations: =20
>> >18311<BR> Total number of=20
>>
>>times: &=
>> >nbsp;=20
>> >48</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> This file will be a =
>> >standard=20
>> >surface file.</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2>Enter <cr> to accept =
>> >parameters or=20
>> >type EXIT:<BR> The file has been created.<BR> Parameters =
>> >requested:=20
>>
>>SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR> GEMPAK-SFCFIL>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> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif"=20
>>
>>size=3D2>[gempak@cirrus]#./test_meteograms<BR> SFOUTF &nb=
>> >sp;=20
>> >Output surface=20
>>
>>file &nb=
>> >sp; =20
>> >sfgram.gem<BR> SFPRMF Surface parameter packing=20
>> >file =
>> >$GEMTBL/pack/hrly.pack<BR> STNFIL =20
>> >Station information =
>> >file =20
>> >/export/home/gempak/scripts/SFSTNS.TBL<BR> SHIPFL
>=
>> >Ship=20
>> >data file=20
>>
>>flag &nb=
>> >sp; =20
>> >NO<BR> TIMSTN Times/additional=20
>> >stations =20
>> >48<BR> SFFSRC Surface file=20
>>
>>source &=
>> >nbsp; =20
>> >AIRW|TEXT<BR> Parameters requested:=20
>> >SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR> GEMPAK-SFCFIL> =
>> >[IP=20
>> >-9] The save file SFCFIL_MGRAM.SETTINGS is=20
>> >invalid.<BR> GEMPAK-SFCFIL> GEMPAK-SFCFIL> [IP -9] The =
>> >save=20
>> >file LAST.NTS is invalid.</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> SFCFIL =
>> >PARAMETERS:</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> New surface=20
>> >file: sfgram.gem<BR> Parameter=20
>> >file: =20
>> >$GEMTBL/pack/hrly.pack<BR> Station file:<BR> Number of =
>> >stations in=20
>> >STNFIL: 3311<BR> Number of additional=20
>> >stations: 0<BR> Total number of=20
>> >stations: 3311<BR> Total =
>> >number=20
>> >of=20
>>
>>times: &=
>> >nbsp;=20
>> >48</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2> This file will be a =
>> >standard=20
>> >surface file.</FONT></DIV>
>> ><DIV> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2>Enter <cr> to accept =
>> >parameters or=20
>> >type EXIT: [FL -3] Cannot create file sfgram.gem.<BR> [DM =
>> >-1] =20
>> >File sfgram.gem cannot be created.<BR> [SF -1] File =
>> >sfgram.gem could=20
>> >not be created.<BR> [SF -3] File is not =
>> >open.<BR> Parameters=20
>> >requested: =
>> >SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.<BR> GEMPAK-SFCFIL>=20
>> >[IP -1] Global file cannot be opened for write =
>> >access.</FONT></DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2>Can you clue me into why it =
>> >won't work=20
>> >with the script? 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? I=20
>> >am quite lost as to why it won't work. It must be something so =
>> >simple, I'm=20
>> >overlooking it. Thanks for your help once again.</FONT></DIV>
>> ><DIV><FONT face=3D"MS Sans Serif" size=3D2></FONT> </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> </DIV>
>> ><DIV><FONT face=3D"MS Sans Serif"=20
>> >size=3D2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>Patrick=20
>>
>>O'Reilly  =
>>
>>; =
>> > =20
>> >Support Scientist<BR>The STORM=20
>>
>>Project =
>> > <A=20
>>
>>href=3D"mailto:address@hidden">address@hidden</A><BR>20=
>> >8 Latham=20
>>
>>Hall &nb=
>>
>>sp; &nbs=
>> >p; =20
>> >ph: 319-273-3789<BR>University of Northern Iowa<BR>Cedar Falls, IA=20
>>
>>50614 &n=
>> >bsp;=20
>> ><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20
>> ><BR></FONT></DIV></BODY></HTML>
>> >
>> >------=_NextPart_000_004B_01C1BE03.EE068AB0--
>> >
>>
>>
>****************************************************************************
><
>> Unidata User Support UCAR Unidata
>> (303)497-8644 P.O. Box
>> address@hidden Boulder, CO
>> --------------------------------------------------------------------------
>> Unidata WWW Service http://www.unidata.ucar.edu/
><
>>
>****************************************************************************
><
>