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

[AWIPS #RXM-953481]: CAVE - NCEP WPC Surface Fronts Analysis question



Hi Pete,

I have a meeting I have to go to, but I wanted to clarify a little bit first.

The regular expression that is defined in the pqaction needs to produce a match 
with the 
product ID that you are passing in and then it uses that match to write out a 
file in 
the data_store directory.

ANY ^([PQ][A-Z0-9]{3,5}) (....) (..)(..)(..) !redbook 
[^/]*/([^/]*)/([^/]*)/([^/]*)/([0-9]{8})
FILE -overwrite -close -edex /awips2/data_store/redbook/\4\5Z_\8_\7_\6-\1_\2.rb

The name in the data store directory is defined by the sections it defines (in 
parenthesis) 
in the regex used to match the product.  

Then the distribution file uses the product id to match the file name:
/awips2/edex/data/utility/common_static/base/distribution/redbook.xml

<requestPatterns xmlns:ns2="group">
    <regex>^[PQ]..... .... ......</regex>
</requestPatterns>


So a couple things, first off, both of the regular expressions are looking for 
the product id
to begin with PQ.  

I think you could simplify the regular expressions and make it easier to work.
If you change your pqaction to simply look for something like this:

^([P]][A-Z0-9]{3,6}) (....) (..)(..)(..)

It should probably match the product ID you're passing in, and then change the 
FILE portion 
to write out something like:
FILE -overwrite -close -edex /awips2/data_store/redbook/\1\2_\3_\4_\5.rb


Then the distribution file will need to be changed so it can match PY, so maybe 
try something
like:

<requestPatterns xmlns:ns2="group">
    <regex>^[P]...... .... ......</regex>
</requestPatterns>


Then, I **think** it should write a file to the data_store/redbook directory 
and the distribution
file should find a match on it's header.

Let me know if any of that makes sense.


--Shay Carter

AWIPS Software Engineer
UCAR - Unidata

If you're interested, please feel free to fill out a survey about the support 
you receive: 
https://docs.google.com/forms/d/e/1FAIpQLSeDIkdk8qUMgq8ZdM4jhP-ubJPUOr-mJMQgxInwoAWoV5QcOw/viewform

Ticket Details
===================
Ticket ID: RXM-953481
Department: Support AWIPS
Priority: Normal
Status: Open
===================
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.