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

20001101: Problem with pqing and PIL identifiers



Scott,

I created the pil tag based on a 5 or 6 character ID on the
second line by itself. This choice was made based on a handout
I have from Fred Branski entitled "Heading for the Future,
National Weather Service Communications Identifiers". This handout shows
the format for an ID as:
TTAAII CCCC YYGGgg (BBB)
NNNXXX

The NNN I assume is always 3 alphanumeric characters. The XXX
examples shown are either 2 or 3 characters (I notice that the 2 character ID's
are supposedly padded with a space at the end). I see that the SEV4 is
also padded with 2 spaces, so I guess I can re-write this code to be
6 characters, with spaces allowed at the end. The major problem with
allowing more lenient character matches is all the international products that 
do
not conform to the NWS format. In those cases, you can have just about
anything as the second line, and occasionally they match and create
a pil tag as well. Such as "TONGA"  (which isn't total ozone number, Georgia).
I'll check to see how many bogus pils are created from non-NWS conforming 
products
if I make the change..

I guess I need to clarify if NNNX[space][space] really a "pil".

In the interim, you might be able to use a pattern line:

PPS     ^WWUS50 .... ([0-3][0-9])([0-2][0-9]).*([^C]|[^K]C|[^M]KC)$'

The above line should capture WWUS50 products that don't end with MKC,
which should eliminate the /pSEVMKC matches.

Steve Chiswell
Unidata User Support





>From: Scott Jacobs <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200011011622.eA1GM7415889

>This is a multi-part message in MIME format.
>--------------C3B4746A5A791A58DB9F8EB7
>Content-Type: text/html; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
><html>
>Hello,
><p>I have encountered a problem with using the PIL&nbsp;identifiers in
>WMO&nbsp;products in LDM&nbsp;version 5.0.9. I am using the following patterns
>to collect products from the Storm Prediction Center:
><p><font size=-1>#</font>
><br><font size=-1># Watch County List</font>
><br><font size=-1>WMO&nbsp;&nbsp;&nbsp;&nbsp; ^WWUS50 .... ([0-3][0-9])([0-2][
> 0-9]).*/pSEV([0-9])</font>
><br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILE&nbsp;&nbsp;&
> nbsp;
>data/nwx/spc/sev/(\1:yyyy)(\1:mm)\1\2.sev</font>
><br><font size=-1>#</font>
><br><font size=-1># Watch Summary</font>
><br><font size=-1>WMO&nbsp;&nbsp;&nbsp;&nbsp; ^WWUS50 .... ([0-3][0-9])([0-2][
> 0-9]).*/pSEVMKC</font>
><br><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILE&nbsp;&nbsp;&
> nbsp;
>data/nwx/spc/sevmkc/(\1:yyyy)(\1:mm)\1\2.sevmkc</font><font size=-1></font>
><p>I have verbose logging on and the following messages are in the log
>file:
><p><font size=-1>Nov 01 01:35:20 is2 hp13[20763]:&nbsp;&nbsp;&nbsp;&nbsp;
>1705 20001101013520.038&nbsp;&nbsp;&nbsp;&nbsp; PPS 035&nbsp; WWUS50 KMKC
>010133</font>
><br><font size=-1>Nov 01 01:44:43 is2 hp13[20763]:&nbsp;&nbsp;&nbsp;&nbsp;&nbs
> p;
>429 20001101014443.645&nbsp;&nbsp;&nbsp;&nbsp; PPS 068&nbsp; WWUS50 KMKC
>010144 /pSEVMKC</font>
><p>The first product listed corresponds to the first pattern. There is
>actually a PIL&nbsp;in the product of "SEV4". The PIL was never added to
>the WMO header. I&nbsp;traced the problem to the get_wmo_header function
>in wmo_header.c. At line 135 there is an if-block that appends the PIL
>to the WMO&nbsp;header. However, there is a check that only adds the PIL&nbsp;
> if
>the length is >4 and &lt;7 characters. Since the PIL in the product I was
>trying to save is only 4 characters long, it is not added to the header
>string.
><p>I would propose that the lower limit check be changed to >3, but I&nbsp;don
> 't
>know if the check on >4 was due to another reason.
><p>Thanks,
><p>Scott Jacobs
><br>NCEP
><br>&nbsp;
><br>&nbsp;</html>
>
>--------------C3B4746A5A791A58DB9F8EB7
>Content-Type: text/x-vcard; charset=us-ascii;
> name="jacobs.vcf"
>Content-Transfer-Encoding: 7bit
>Content-Description: Card for Scott Jacobs
>Content-Disposition: attachment;
> filename="jacobs.vcf"
>
>begin:vcard 
>n:Jacobs;Scott
>tel;fax:301-763-8381
>tel;work:301-763-8000 x7143
>x-mozilla-html:FALSE
>org:DOC/NWS/NOAA/NCEP;Computing Development Branch
>version:2.1
>email;internet:address@hidden
>title:Physical Scientist
>adr;quoted-printable:;;W/NP14, RM 302, WWBG=0D=0A5200 Auth Road;Camp Springs;M
> D;20746-4304;
>x-mozilla-cpt:;19744
>fn:Scott Jacobs
>end:vcard
>
>--------------C3B4746A5A791A58DB9F8EB7--
>