[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20010416: Importing ship format data
- Subject: Re: 20010416: Importing ship format data
- Date: Mon, 14 May 2001 12:29:04 -0600
Jimmy,
Your PARM line in storms.txt should be: PARM = SLAT;SLON;WIND
eg:
PARM = SLAT;SLON;WIND
STN DATTIM SLAT SLON WIND
BONN 980819/1200 14.7 -48.1 25
BONN 980819/1800 15.4 -50.1 30
BONN 980820/0000 16.2 -52.2 30
BONN 980820/0600 16.9 -54.7 30
<etc>
Now, create the file with sfprmf=wind as folows:
SFOUTF = storms.gem
SFPRMF = wind
STNFIL =
SHIPFL = y
TIMSTN = /500
SFFSRC =
GEMPAK-SFCFIL>r
SFCFIL PARAMETERS:
New surface file: storms.gem
Parameter file: wind
Station file:
Number of stations in STNFIL: 0
Number of additional stations: 500
Total number of stations: 500
Total number of times: 1
This file will be a ship file.
Enter <cr> to accept parameters or type EXIT:
Parameters requested: SFOUTF,SFPRMF,STNFIL,SHIPFL,TIMSTN,SFFSRC.
GEMPAK-SFCFIL>
Then run sfedit:
SFEFIL Surface edit file storms.txt
SFFILE Surface data file storms.gem
Parameters requested: SFEFIL,SFFILE.
GEMPAK-SFEDIT>r
SFEDIT PARAMETERS:
Edit file: storms.txt
Output surface file: storms.gem
Parameters to be added to file:
SLAT SLON WIND
Enter <cr> to accept parameters or type EXIT:
Parameters requested: SFEFIL,SFFILE.
GEMPAK-SFEDIT>
Steve Chiswell
Unidata User Support
On Mon, 14 May 2001, J. Correia wrote:
> hi again-
> i did this like you told me in the email below...and it worked...but we
> made a mistake in the data file, and upon correction, we are getting
> errors in that it says there are no times when we try to list the data in
> sflist. from the sfedit program we got an error about ship file lat/lon
> pair missing...
> i have a feeling i have to reinitialize the program somehow...but deleting
> the gemglb and last.nts files didnt work...any thoughts?
> jimmyc
>
> On Mon, 16 Apr 2001, Steve Chiswell wrote:
>
> >
> > Jimmy,
> >
> > The type of input file you have created in storms.txt is a SHIP
> > format surface file. That is, you have station ID's that move with
> > time (different slat/slon possitions for the same station id).
> >
> > So, start with creating a ship format file:
> >
> > SFOUTF = storms1.gem
> > SFPRMF = wind
> > STNFIL =
> > SHIPFL = y
> > TIMSTN = /500
> > SFFSRC =
> > GEMPAK-SFCFIL>r
> >
> > Now you can use sfedit to read the data into the file.
> > Note that SFCFIL used only WIND as an expected parameter. That is
> > because slat and slon are already part of the surface file.
> >
> > SFEFIL = storms.txt
> > SFFILE = storms1.gem
> > GEMPAK-SFEDIT>r
> >
> > SFEDIT PARAMETERS:
> >
> > Edit file: storms.txt
> > Output surface file: storms1.gem
> >
> > Parameters to be added to file:
> >
> > SLAT SLON WIND
> >
> > Now your data is in a ship format surface file. I can list it like:
> > SFFILE = storms1.gem
> > AREA = dset
> > DATTIM = all
> > SFPARM = dset
> > OUTPUT = t
> > IDNTYP = stid
> > GEMPAK-SFLIST>r
> > PARM = WIND
> >
> > STN YYMMDD/HHMM WIND
> > BONN 980819/1200 25.00
> > DANI 980819/1200 25.00
> > GEOR 980819/1200 30.00
> > JEAN 980819/1200 30.00
> > MITC 980819/1200 30.00
> > CIND 980819/1200 30.00
> > DENN 980819/1200 30.00
> > <etc.>
> >
> > Steve Chiswell
> > Unidata User Support
> >
> > On Wed, 11 Apr 2001, J. Correia wrote:
> >
> > > hi again-
> > > btw...thanks for all your help...the diagnostic calculations worked
> > > great..
> > > now on to creating data files in gempak
> > > my file storms.txt cant be opened by the sfedit program...i did get an
> > > earlier version of this file to open, but no data was written to the
> > > gempak file...
> > > i searched the archives and found one email where the user had siimiliar
> > > data and her file wouldnt open either...but i never saw a solution...as
> > > you were able to open and plot her data...
> > > any thoughts?
> > > thanks again.
> > > jimmyc
> > >
> > >
> >
> >
>