Jeff Whitaker wrote:
> Ryan May wrote:
>> (Sorry if this is a duplicate)
>>
>> Hi,
>>
>> I'm trying to make a Skew-T LogP plot, an important plot in 
>> meteorology, using matplotlib (mainly to help convert people away from 
>> much more horrible solutions).  You can see one here: 
>> http://www.rap.ucar.edu/weather/upper/oun.gif
>>
>> and more cartoonish:
>> http://www.srh.noaa.gov/oun/images/figure6.gif
>>
>>
>> (Pay attention only to the lower part with the bold red and green 
>> lines).  I'm pretty sure matplotlib can't currently do this, but it 
>> shouldn't be too hard.  The crux of the plot is that you plot 
>> temperature as a function of pressure, with pressure reversed and 
>> logarithmically spaced on the Y-axis (ie. high pressure at the bottom) 
>> and temperature plotted skewed along the X axis.  That is, the lines 
>> of constant temperature intersect the bottom at 45 degree angles.  I 
>> know matplotlib can do log axes, so how hard would it be for me to 
>> create a transform that can handle the 45 degree skew of the temperature?
>>
>> Thanks,
>>
>> Ryan
>>
>>   
> Ryan:  I'm sure you could do it, and it would be a nice contribution to 
> the community.  There's some IDL code here
> 
> http://cimss.ssec.wisc.edu/camex3/archive/quicklooks/
> 
> you could work from.  There's also NCL code (couldn't find it on the 
> web, but the source code comes with NCL).  I'd suggest working from 
> those.  I don't think you need transforms (although they might make it 
> easier), since neither of those languages has them.
> HTH,
> 
> -Jeff
> 
(Sending to the list this time.  Oops)

Thanks.  I also managed to find a matlab implementation, which was 
straightforward to port over.  I'm working on fleshing out the full 
Skew-T look right now.  As far as using the transforms, here's the 
question:  Does anyone besides the meteorologists have a need for a plot 
with a skewed axis?  If so, it might pay to make this general. 
Otherwise, this could stay as a specific Skew-T LogP plot.  If the 
latter is the case, does it make sense to include such a method anywhere 
in Matplotlib?  I guess if nothing else it could go in as an example.


Opinions?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to