Hi all,
I just wanted to update everybody on what the problem was here,
although there's probably not much that can be done about it since it
involves Numeric.
[For the record, we have decided to completely drop
Numeric support in PyNGL and PyNIO in our next release.]
Keith was using version 24.2 of Numeric (the same that we have).
Oddly, though, the following code was producing different results
on his machine:
import Numeric
pres = Numeric.array([1050.,1000.,850.],'f')
print "pres",pres
print "pres[1:]",pres[1:]
His output was:
pres [ 1050. 1000. 850.]
pres[1:] zeros((0,), 'f')
but on our systems it is:
pres [ 1050. 1000. 850.]
pres[1:] [ 1000. 850.]
If he uses numpy, then his system produces the expected output.
--Mary
On Tue, 2 Oct 2007, Keith Romberg wrote:
> Hello Mary,
>
> Setting that parameter does not seem to do anything. Running the
> examples skewt1.py, skewt2.py, and skewt3.py with the PyNGL
> 1.2( x86_64 ), does not produce the corresponding plots from
>
> http://www.pyngl.ucar.edu/Examples/gallery.shtml
>
> They have the same problem in that the pressure labels are 0.0 to 40.0
> rather than 1000 to 150.
>
> Keith
>
> On Tue, 2007-10-02 at 14:40 -0600, Mary Haley wrote:
>> Hi Keith,
>>
>> It sounds like index values are being used on your left axis. In
>> order to get actual pressure values, you need to set the "sfYArray" to
>> the array of pressure values that represent the leftmost dimension of
>> the array you're contouring.
>>
>> For an example, see the third plot of "ngl02" at:
>>
>> http://www.pyngl.ucar.edu/Examples/gallery.shtml
>>
>> The first two plots are an example of what you get when you
>> don't set sfYArray (or sfXArray, for that matter).
>>
>> --Mary
>>
>>
>
>
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Oct 10 2007 - 11:24:22 MDT
This archive was generated by hypermail 2.2.0 : Wed Oct 10 2007 - 17:15:05 MDT