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

20010711: MAV files



>From: Tom Priddy <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200107111432.f6BEWL123609

>From: Tom Priddy
>
>I need some help on the mav model guidance files. We want the files to
>store
>in individial files. Here's the pqact.conf command that we are using:
>#
># AVN MAV
>#
>WMO     ^FOUS2[0-9] KWN.
>        FILE    -strip  -overwrite      /ldmdata/gempak/mos/mav/\1.\2
>WMO     ^FOAK3[0-9] KWN.
>        FILE    -strip  -overwrite      /ldmdata/gempak/mos/mav/\1.\2
>WMO     ^FOPA20 KWN.
>        FILE    -strip  -overwrite      /ldmdata/gempak/mos/mav/\1.\2
>
>WMO     ^...... .... ([0-3][0-9])([0-2][0-9]).*/pMAV
>        FILE    /ldmdata/gempak/mos/mav/(\1:yy)(\1:mm)\1\2.mav
>
>The top 3 commands don't work. All we get is one file every day.
>Can you help?/ktp
>
>--
>===========================================================================
>
>Tom Priddy,  Extension Ag. Meteorologist.....email: address@hidden
>Ag. Weather Center.............................fax: 859-257-5671
>243 Ag. Engineering Bldg.....................phone: 859-257-8803 ext 245
>
>Dept. of Biosystems and Ag. Engr.
>University of Kentucky
>Lexington, KY 40546-0276
>HOMEPAGE......................................http://wwwagwx.ca.uky.edu/
>
>===========================================================================
>
>
>

Tom,

The top 3 don't have anything in the parentheses () to match for the \1 and \2.
so the file names \1.\2 are going to be garbage.

The last line matching on the PIL tag MAV (similar to what is shown in the
NWX pqact.conf examples) will store the data in files by the forecast run time, 
YYMMDDHH.mav according to your pattern.

I'm not clear as to what you want from the top 3 lines because  there
is
nothing to match on.

You could use:
WMO     ^(FOUS2[0-9]) (KWN.) ([0-3][0-9])([0-2][0-9])
        FILE    -strip  ...../\1.\2.(\3:yy)(\3:mm)\3\4
WMO     ^(FOAK3[0-9]) (KWN.) ([0-3][0-9])([0-2][0-9])
        FILE    -strip  ...../\1.\2.(\3:yy)(\3:mm)\3\4
WMO     ^(FOPA20) (KWN.) ([0-3][0-9])([0-2][0-9])
        FILE    -strip  ...../\1.\2.(\3:yy)(\3:mm)\3\4

or

WMO     ^(......) (....) ([0-3][0-9])([0-2][0-9]).*/pMAV
        FILE    -strip  ...../\1.\2.(\3:yy)(\3:mm)\3\4

Either the first 3 lines above, or the last line will give you files
named like FOPA20.KWNO.01071112.

Note that there are more than 1 bulletin for each header, eg:
FOPA20 KWNO, 1 has PHNA, PHNG, PHNL, PHNY, ..etc...PHOG, the other has PHTO. 
If you use -overwrite, you may end up with data for the same run overwriting 
itself (depending on when it arrives), so my examples don't use that.

Steve CHiswell