[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19990510: GEMPAK LDM decoder - dcwatch
- Subject: 19990510: GEMPAK LDM decoder - dcwatch
- Date: Mon, 10 May 1999 10:02:34 -0600
Hsie,
The character sequence in the WWUS40 bulletins has changed and is
causing trouble when getting a bulletin. You need to edit the
dcgbul routine and recompile that routine, then recompile gpwatch.
Here is the fix I posted to solve that problem. In particular, note
the change to line 302 of $GEMPAKHOME/src/bridge/dc/dcgbul.c
Then rebuild as shown below.
>> After checking into your report of missing watches, I found that
>> some of the WWUS40 bulletins have an extra carriage return "\r"
>> before the bulletin end sequence \r\r\nETX which is confusing
>> the gempak routine that gets a complete bulletin, and therefore
>> the bulletin is never being sent to the decoder. I'll have to
>> check other bulletins to see if this is particular to NOAAport
>> or just the WWUS40 bullins.
>>
>> Here is the quick fix for the watches,
>>
>> edit the $GEMPAKHOME/src/bridge/dc/dcgbul.c routine, and
>> at line 302, change the finite_state = CR_ to be finite_state = CR_CR_.
>>
>> This will look like:
>> /*
>> ** If two Carriage Returns have been found, check for
>> ** a Line Feed.
>> */
>> case CR_CR_:
>> if ( ch == CHLF ) {
>> finite_state = CR_CR_NL_;
>> }
>> else
>> {
>> if ( ch == CHCR ) /* EJW - 7/96 */
>> {
>> finite_state = CR_CR_; /* chiz 1/99 */
>> }
>> else
>> {
>> finite_state = IN_BULLETIN;
>> }
>> }
>> break;
>>
>> After editing that routine:
>> cd $GEMPAKHOME/src/bridge/dc
>> make clean
>> make
>> make clean
>>
>> cd $NAWIPS/unidata/ldmbridge/dcwatch
>> make clean
>> make all
>> make install
>> make clean
Steve Chiswell
Unidata User Support
>From: Eirh-Yu Hsie <address@hidden>
>Organization: .
>Keywords: 199905101520.JAA25235
>Hello:
>
>I do not get any watch box recently (on the past several weeks). My LDM
>pqact.conf entry is:
>
>#
># Watch box coordinates
>#
>DDPLUS ^WWUS40 KMKC ([0-3][0-9])([0-2][0-9])
> PIPE dcwatch -v 1 -t 30
> -d logs/gempak.log
> -s /home/gempak/NAWIPS-5.4/gempak5.4/tables/stns/sfworld.tbl
> -p /home/gempak/NAWIPS-5.4/gempak5.4/tables/pack/watch.pack
> data/gempak/storm/watches/watches_YYYY_MM.gem
>
>
>The log file shows:
>
>DCWATCH[28620]: 990510/1232: Starting up.
>DCWATCH[28620]: 990510/1232: [DC -6]
>DCWATCH[28620]: 990510/1232: Normal Termination.
>DCWATCH[28620]: 990510/1232: Number of bulletins read and processed: 0
>DCWATCH[28620]: 990510/1232: Shutting Down.
>
>
>Nothing was decoded.
>
>
>Hsie
>