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

19990728: ua2nc (fwd)



Don,

I made the change.

Robb...

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

---------- Forwarded message ----------
Date: Thu, 29 Jul 1999 11:56:01 -0600
From: Don Murray <address@hidden>
To: address@hidden
Subject: 19990728: ua2nc


Robb-

I think the problem in ua2nc is the following (in ttaa sub):

        } elsif( $pres[ $j ] == 250 && $ht[ $j ] < 1000 ) { # 250 mb
                        $ht[ $j ] = "1" . $ht[ $j ] ;

At this point, you've already added a 0 to the end of $ht, so the
value from a report like:

TTAA  78061 47122 99992 24407 17006 00518 ///// ///// 92658
21409 18522 85390 18213 19530 70038 10817 20521 50579 02343
22019 40754 10557 21016 30969 24157 21016 25100 33957 24507
20252 46758 25005 15437 61157 26515 10683 71156 ///// 88999
77999 =

where the 250 mb value is:

25100,

$ht should be 1000, which would be a height of 11000 so you
need to add the one.  Typical values of 250 mb heights are
around 9800-10800 but in this case it is 11000.  I think if 
you change the code to be:

        } elsif( $pres[ $j ] == 250 && $ht[ $j ] < 5000 ) { # 250 mb
                        $ht[ $j ] = "1" . $ht[ $j ] ;


you would be okay.  There shouldn't be 250 mb heights below 5000
or above 15000.

Let me know what you think. 

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/
*************************************************************