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

Re: 19990920: Another problem with the ua2nc decoder



Don,

I made the fix and then installed it on shemp.  After reading the text,
it's possible that adding 500 would put the height out of the 500-600
range if it was really 125 meters below sea level. Maybe I missing
something.  The code now looks like:

        } elsif( $pres[ $j ] == 1000 && $ht[ $j ] > 500 && $ht[ $j ] < 600
) {
                        $ht[ $j ] -= 500 ;
                        $ht[ $j ] *= -1 ;  

Your example comes out correctly now.

Robb...




On Mon, 20 Sep 1999, Don Murray wrote:

> 
> Hi Robb-
> 
> Yes, it's everybody's favorite time - find that bug!
> 
> Steve found a bug in ua2nc.  There is a station in Germany
> which has the following report:
> 
> USDL40 EDZW 200300
> TTAA 20021 10868 99943 15050 09503 00528 ///// ///// 92644
> 18861 14509 85374 18867 18514 70006 07262 16007 50567 08956
> 21020 40737 20957 21514 30942 38350 21518 25065 48959 22025
> 20207 60158 23023 15383 65961 23011 10637 57981 25006 88164
> 67160 23016 77999=
> 
> The 1000 mb height actually ends up being below sea level (-28 m).
> Heights below sea level are reported by adding 500 to the absolute
> value of the number, in this case it comes out as 528 (00528 group).
> ua2nc decodes this as 528 m.  So, some code needs to be added to
> check for this. 
> 
> Thanks.
> 
> Don
> *************************************************************
> Don Murray                               UCAR Unidata Program
> address@hidden                        P.O. Box 3000
> (303) 497-8628                              Boulder, CO 80307
> *************************************************************
> Unidata WWW Server               http://www.unidata.ucar.edu/
> McIDAS Demonstration Machine  http://mcdemo.unidata.ucar.edu/
> *************************************************************
> 

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