[Matplotlib-users] Question about copy_from_bbox

2014-03-31 Thread Michka Popoff
Hi I am using blitting and am not able to get it to work as I want. I am using copy_from_bbox during the setup of my PyQt GUI to save a meshgrid as a starting empty background. Then, once the GUI is loaded, the user can click on the meshgrid and a square is displayed on the selected pixel with

Re: [Matplotlib-users] [Pyaos] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
Hello Marry, I am highly interested in getting "wrf_cape_3d" wrapped to be accessible in Python. So far, that's how I calculate CAPE and CIN for my WRF outputs. wrf_cape_3d is more robust comparing to the function in the SkewT script. For some reason, I have no luck getting wrf_cape_2d working pro

[Matplotlib-users] why does floor(x) return a float while docs state it returns integer?

2014-03-31 Thread Mark Bakker
I expected that floor(x) would return an integer especially since the docs state: Return the floor of the input, element-wise. The floor of the scalar `x` is the largest integer `i`, such that `i <= x`. It is often denoted as :math:`\lfloor x \rfloor`. Any reason why it returns a float? Bug/f

Re: [Matplotlib-users] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
As for the rest of the two suggestions: [ https://github.com/pmarshwx/SHARPpy/tree/gui https://github.com/PyAOS/aoslib] there doesn't seem be routines included for CAPE and CIN calculations. I am working on idealized orographic precipitation simulations in WRF that will hopefully be presented in t

Re: [Matplotlib-users] [Pyaos] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
Thanks Daniel. Your CAPE calculation approach looks robust. I will give it a try with my sounding data. In the mean time, do you plan on putting a function for CIN calculation? On Sun, Mar 30, 2014 at 10:37 AM, Daniel Rothenberg wrote: > Hello Gokhan, > > I've written my own SkewT/LogP code with

Re: [Matplotlib-users] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
Thanks Alex. This seems to be the easiest way to approach the problem. However, for the sake of reproducibility, I am looking for a way to interface to one of the common fortran routines for the task. Your suggested approach will require some sort of interpolation at the very least to make the esti

Re: [Matplotlib-users] CAPE and CIN calculation in Python

2014-03-31 Thread Gökhan Sever
Hi James, I have managed to run CLIMT's thermodyn.py . Most of the functions I tested from within the Driver.f90 works fine except the CAPE and CIN routines. I sent an e-mail to the author regarding this but nothing back from him so far. Would you give a test if I send you a simple sounding data?