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

20030204: pqact action for N0R|N0V products for LWX



>From:  Don Murray <address@hidden>
>Organization:  UCAR/Unidata
>Keywords:  200302041515.h14FFn601730 LDM pqact WSI NNEXRAD

Don,

>I am using the WSI feed on ATM to generate some GIFs for
>the weather.geo.nsf.gov web server.  All I need is to have
>the BREF1 (N0R) and VEL1 products from LWX.  What would I
>use for a pqact entry.  The current one is:
>
># make some nids gifs
>WSI 
>^NEX/(LWX)/(BREF1|VEL1)/..([0-9][0-9])([0-1][0-9])([0-3][0-9])([0-2][0-9
>])([0-6][0-9])
>         FILE    -close  data/gempak/tmp/nids/\2_\1_\3\4\5\6\7.nex
>#
>WSI 
>^NEX/(LWX)/(BREF1|VEL1)/..([0-9][0-9])([0-1][0-9])([0-3][0-9])([0-2][0-9
>])([0-6][0-9])
>         EXEC    util/NIDS_gif.csh \2_\1_\3\4\5\6\7.nex \1_\2_\3\4\5\6\7.gif

Here is what the WSI headers look like and how they relate to the pattern
above:

WSI header for BREF1 for LWX:  NEX/LWX/BREF1/200302041440

\1 -> LWX         ID
\2 -> BREF1|VEL1  TYPE
\3 -> 03          yy
\4 -> 02          MM
\5 -> 04          dd
\6 -> 14          hh
\7 -> 40          mm

Here is what the NNEXRAD pattern looks like and how they relate to the
pattern listed below:

NNEXRAD header for N0R for LWX:  SDUS51 KLWX 041501 /pN0RLWX

\1 -> 04          dd
\2 -> 15          hh
\3 -> 01          mm
\4 -> N0R|N0V     TYPE
\5 -> LWX         ID

The pqact.conf action I think you need is:

NEXRAD  ^SDUS[2357]. .... ([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(N0R|N0V)(LWX)
        EXEC    util/NIDS_gif.csh \4_\5_(\1:yy)(\1:mm)\1\2\3.nex 
\5_\4_(\1:yy)(\1:mm)\1\2\3.gif

This could be simplified by not separating the hour from the minute
in the time.

Tom
--
+-----------------------------------------------------------------------------+
* Tom Yoksas                                             UCAR Unidata Program *
* (303) 497-8642 (last resort)                                  P.O. Box 3000 *
* address@hidden                                   Boulder, CO 80307 *
* Unidata WWW Service                             http://www.unidata.ucar.edu/*
+-----------------------------------------------------------------------------+