[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20031112: problem with dclsfc with synoptic bulletin
- Subject: 20031112: problem with dclsfc with synoptic bulletin
- Date: Wed, 12 Nov 2003 13:17:03 -0700
David,
The metar decoder is built to allow both FOS style (^A^M^M\n.....^M^M\n^C)
bulletin separators, and AFOS style (ZCZC.....NNNN) separators
as found in the $GEMPAK/source/bridge/mt/mtdcod.f routine, where
the call to DC_GBUL will determine which of the styles the bulletin is,
and call either DC_GHDR for FOS or DC_GPIL for AFOS.
The dclsfc decoder routine $GEMPAK/source/bridge/ls/lsdcod.f only has a call to
the FOS style header routine, so is not built to expect AFOS style ZCZC....NNNN
delimeters. You could add the check on iftype returned from DC_GHDR through.
On a FOS style header, the AFOS style PIL identifier you have is not present.
Rather, you should have metar bulletins that look like either:
^A^M^M
sequence number (eg 999, etc)
WMO header (eg SAUS80 KWBC 121800 etc)
....
^M^M
^C
For an AFOS Metar,
ZCZC NNNMTRCCC
SAUS80 KWBC 122100
.....
NNNN
Since dclsfc is expecting FOS bulletins only, your bulletin should look like:
^A^M^M
999
SMCN23 CWAO 120900
AAXX 12094
71300 NIL=
71301 NIL=
71303 NIL=
71304 NIL=
....
^M^M
^C
I created a header and trailer for your bulletin with:
echo 'AMML' | tr 'AMLC' '\001\015\012\003' >! header
echo 'MMLC' | tr 'AMLC' '\001\015\012\003' >! trailer
and then edited your WAO....file placing the header and seq. number at
the top and the trailer at the end and eliminated the AFOS 9 character pil.
At that point, it will decode.
Steve Chiswell
>From: "David Bernhardt" <address@hidden>
>Organization: NOAA
>Keywords: 200311121524.hACFOPOb010204
>This is a multi-part message in MIME format.
>
>----39713cc067b879d
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: 7bit
>
>I have had persistent problems with gempak decoder dclsfc handling
>surface synoptic observations. I am feeding my ldm with an asynchronous
>feed from my AWIPS.
>I have attached files containing the following:
>stuff_RR1.csh is the script I run to test the writing of the input to
> a gem file.
>WAOSSMWAO is the file as I get it through the async scheduler
>WAOSSMWAO1 is the file after I write a ^A to the beginning of the file.
> The only reason I have tried this is because of what I had to
> do to get the MTR/SAO files to ingest.
>x.log is the resulting log file.
>
>Any suggestions?
>
>I also have problems with my surface MTR decoder with files coming
>through my async scheduler. I have to grap the files and prepend each
>with a ^A and end each with a ^C before the decoder will handle them.
>
>Dave Bernhardt
>NWS Great Falls
>
>----39713cc067b879d
>Content-Type: text/plain
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment; filename="stuff_RR1.csh"
>
>IyEvYmluL2NzaA0KDQojIEEgcHJvZ3JhbSB0byBzdHVmZiBicm93bmluZyB3aW5kcyBpbnRv
>IGEgZ2VtcGFrIGZpbGUNCiMNCiNzZXQgZGF0ZQ0KY2QgL3VzcjEvbGNsX3Byb2dzL3N5bm9w
>DQoNCnNldCBnbXR5ciA9IGBkYXRlIC11ICsleWANCnNldCBnbXRtbiA9IGBkYXRlIC11ICsl
>bWANCnNldCBnbXRkeSA9IGBkYXRlIC11ICslZGANCnNldCBnbXRociA9IGBkYXRlIC11ICsl
>SGANCnNldCBocnBvc3QgPSAiMDAiDQoNCiNzZXQgZ210ZHkgPSAiMDgiDQpzZXRlbnYgREFU
>RSAkZ210eXIkZ210bW4kZ210ZHkNCnNldGVudiBUSU1FICRnbXRociRocnBvc3QNCg0KDQov
>dXNyMS9uYXdpcHMvYmluL2xpbnV4L2RjbHNmYyAtdiAxMiAtYyAke0RBVEV9LyR7VElNRX0g
>LWIgMTIgLWQgeC5sb2cgLXAgL3VzcjEvbmF3aXBzL2dlbXBhay90YWJsZXMvcGFjay9zZnN5
>bi5wYWNrIFwNCi1zIC91c3IxL25hd2lwcy9nZW1wYWsvdGFibGVzL3N0bnMvc3lzdG5zLnRi
>bCAke0RBVEV9X3guZ2VtIDwgV0FPU1NNV0FPMSANCg0KDQptb3JlIHgubG9nDQo=
>----39713cc067b879d
>Content-Type: text/plain
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment; filename="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