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 darot...@mit.eduwrote:

 Hello Gokhan,

 I've written my own SkewT/LogP code with some lifted parcel calculations -
 it's included in a GitHub repo I use to maintain a collection of utilities
 I've written for analyzing output from a cloud resolving model I use. You
 can find my code for this purpose at
 https://github.com/darothen/crm-tools/blob/master/vis/soundings.py, along
 with other useful scripts.

 - Daniel Rothenberg


 On Sat, Mar 29, 2014 at 6:32 PM, Gökhan Sever gokhanse...@gmail.comwrote:

 Hello,

 Lately, I am working on plotting sounding profiles on a SkewT/LogP
 diagram. The SkewT package which is located at
 https://github.com/tchubb/SkewT has a nice feature to lift a parcel on
 dry/moist adiabats. This is very useful to demonstrate the regions of CIN
 and CAPE overlaid with the full sounding.

 However, the package misses these diagnostic calculations. This is the
 only step holding me back to use Python only (migrating from NCL) for my
 plotting tasks.  I am aware that these calculations are usually performed
 in fortran. Are there any routines wrapped in Python to calculate CAPE and
 CIN parameters?  Any suggestions or comments would be really appreciated.

 --
 Gökhan

 ___
 Pyaos mailing list
 py...@lists.johnny-lin.com
 http://lists.johnny-lin.com/listinfo.cgi/pyaos-johnny-lin.com





-- 
Gökhan
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

2014-03-30 Thread Ryan May
On Sun, Mar 30, 2014 at 4:36 PM, Thomas Chubb thomas.ch...@monash.eduwrote:

 Gokhan [and others],

 Thanks for showing an interest in SkewT. This has been a side project for
 me for a little while now, and only publicly available on PyPI in the last
 12 months or so. I haven't been maintaining the github repository, so
 please get the latest version from here:

 https://pypi.python.org/pypi/SkewT

 I'll take the github repository down in the very near future unless I hear
 howls of protest.

 Regarding CAPE and CIN, these have been on my to-do list for a while. I
 agree that it would be a nice feature to include on the SkewT plots, but I
 don't really know the best way to proceed, but it would be nice to get some
 thoughts from the community.


Thomas (and others),

As the author of the original matplotlib code that you ran with (and
extended greatly!) I wanted to note two things:

1) Fixes to matplotlib to add skew transforms and make them work better for
plots is in master and should go out in 1.4. A basic version
of the SkewT plot is in the tree under examples/api/skewt.py

2) I've been (slowly) working on fleshing out that script with more
features (and more class-based) on a branch here:
https://github.com/metpy/MetPy/blob/skewt/metpy/plots/skewt.py

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users