Re: METAR Decoder Question

NOTE: The decoders mailing list is no longer active. The list archives are made available for historical reasons.

Alan,

I made the mods to properly gather the runway data so it doesn't end up as
temperature data.  If you find any more problems I would like to know.
The new file is in the anonymous  ftp/pub/decoders directory.  Besides the
metar2nc there is also a new ldmConnect script.


Thanks,
Robb...


On Wed, 11 Mar 1998, Alan Steremberg wrote:

Hi,

We have been using the decoders package since June and it has been working really well for us, much better than the way we were doing it before.

I have seen bogus METARS come over the wire that the metar converter just discards (without any messages) that seem to make their way onto the weather.nws.noaa.gov site.

One example is:

^M^M
^C^A^M^M
226 ^M^M
SAUK31 KWBC 111820 RRA^M^M
METAR^M^M
EGAA 33008KT 9999 FEW015CB SCT100 05/02 Q1025 NOSIG=^M^M
EGBB 32006KT 9999 SCT035 SCT050 04/02 Q1021=^M^M
EGCC 31006KT 260V350 9999 FEW025 06/02 Q1021 NOSIG=^M^M
EGGW 34007KT CAVOK 05/01 Q1019=^M^M
EGHH 34007KT 290V030 9999 FEW045 SCT280 06/M02 Q1022=^M^M
EGKK 35008KT 9999 FEW045 SCT200 07/M03 Q1020 NOSIG=^M^M
EGLL 33007KT 300V360 9999 FEW045 07/M01 Q1020 NOSIG=^M^M

For some reason they are missing the date and time.

The metar spec I have been using says:
---
http://www.nws.noaa.gov/oso/oso1/oso12/fmh1/fmh1ch12.htm
12.5 Coding Missing Data in METAR/SPECI

When an element does not occur, or cannot be observed, the corresponding
group and preceding space are omitted from that particular report.
---
So I guess this is valid? We could check to see if the first element ends in a Z and decide whether or not it is a date. Of course, what date do you give it?


        # get date hour minute
        next unless( s#^(\d{4,6})Z\s+## );

----

The other problem I fixed already (not correctly?) is that some stations in Europe don't seem to report Runway visual range in FT, they choose another unit!
(7) Runway Visual Range - RDRDR/VRVRVRVRFT or
         RDRDR/VNVNVNVNVVXVXVXVXFT

97061221_sao.wmo:RJFK 2100Z 02005KT 0100 R34/0100N FG VV003 15/15 Q1015 RMK A2998 FCST
97061221_sao.wmo:RJSK 2100Z 12002KT 0200 R28/0300N FG VV001 13/13 Q1015 RMK
97061212_sao.wmo:EGJA 1150Z 23008KT 0150 R26/0350 FG DZ OVC000 14/// Q1008
97061212_sao.wmo:RJSM 121207Z 14004KT 0900 R10/1400D -DZ FG SCT000 OVC001 11/11 Q1013 97061212_sao.wmo:RJSM 1200Z 13005KT 1200 R10/P1800N -DZ BR SCT000 BKN001 OVC002 11/11 # AJS -- allow for misformed files without the FT # this fixes a temperature bug, we hope..
            if( s#R(\d{2})(R|L|C)?/\d*\s*## ){
#print "got it!\n";
            }
            else
            {
                last;
            }
        }

I think there might be one more bug that is causing the temperature to read incorrectly sometimes. Haven't tried to track it down yet.


Thanks,
Alan


==============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx                   WWW: http://www.unidata.ucar.edu/
==============================================================================


  • 1998 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the decoders archives: