[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20010222: LDM-METAR problem (fwd) - more sample data
- Subject: Re: 20010222: LDM-METAR problem (fwd) - more sample data
- Date: Tue, 27 Feb 2001 16:38:19 -0700 (MST)
On Tue, 27 Feb 2001, Greg Thompson wrote:
>
> > I forgot to add the SPCN along with SACN as the names for the Canadian
> > reports to be processed. The corrected code is attached, hopefully this
> > solve your problems.
>
> Couldn't you solve this better by matching just ^SP[A-Z][A-Z] instead of
> individual country codes? I'm concerned that other country's
> WMO headers will have SPLF for France for example. Is this true?
> This code should handle all country's SPECIs not just U.S. and
> Canada.
Greg,
The Canadian reports are the ones missing the "PIL" line all the other
countries have the 2nd line filled in with a PIL, "METAR", "SPECI", etc.
It's the absence of that line that caused the problem in the first place.
So if it's a Canadian report, (SACN|SPCN) the code skips processing the
PIL line, all other reports do the standard processing ^S[A-Z][A-Z]...
that was done before. I should of been clearer in my fix description
Robb...
>
> I'll test your code but I'll certainly need a solution that works
> for ALL international METARs and SPECIs.
>
> --
> +--------------------------------------------------------------+
> | Greg Thompson http://www.rap.ucar.edu/staff/gthompsn/ |
> | Research Applications Program |
> | (303) 497-2805 National Center for Atmospheric Research |
> | (fax) -8401 P.O. Box 3000 Boulder, CO 80307-3000 |
> +--------------------------------------------------------------+
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================