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

20050920: NNEXRAD pqact entry



>From: "Jordan Gerth" <address@hidden>
>Organization: SSEC/CIMSS
>Keywords: 200509201539.j8KFdPYJ019872 LDM pqact actions regular expression

Hi Jordan,

>We are trying to ingest radar data for certain sites. 
>However, this pqact entry seems to be giving us trouble. 
> The file name is not being saved with the radar's site 
>identifier.
>
>NNEXRAD ^SDUS5. .... 
>([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p..(.[APX|DVN|GRR|IWX|MKX|MQT|ARX|GRB|I
> LX|LOT|MPX])
>FILE -close 
>/data/fxa/radar/raw/Raster.(\1:yyyy)(\1:mm)(\1:dd)\2\3%j.\4
>
>Any suggestions?

Yes. Your regular expression is not correct.  Your pqact.conf action should
read:

NNEXRAD ^SDUS5. .... 
([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p...(APX|DVN|GRR|IWX|MKX|MQT|ARX|GRB|ILX|LOT|MPX)
        FILE    -close 
        /data/fxa/radar/raw/Raster.(\1:yyyy)(\1:mm)(\1:dd)\2\3%j.\4

Another comment:  if you only want to process a subset of the radars
that are available, it would be more efficient wrt network bandwidth
use to only request the radars you want.  You do this by tailoring the
request line in your ldmd.conf file:

request NNEXRAD "(APX|DVN|GRR|IWX|MKX|MQT|ARX|GRB|ILX|LOT|MPX)" <upstream feed 
host>

One last comment:  you can use the LDM utility 'notifyme' to test the regular
expressions you want to use in ldmd.conf request lines and pqact.conf 
pattern action lines.  Here is one quick example:

<as 'ldm'>
notifyme -vxl- -f NNEXRAD -p "(APX|DVN|GRR|IWX|MKX|MQT|ARX|GRB|ILX|LOT|MPX)"

Note the user of shited quotes sorrounding the pattern specified as the
value of the '-p' flag to 'notifyme'.

Cheers,

Tom Yoksas
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.