Erik Schweller wrote:
> My overall goal is to generate contour plots for a wide range of input
> data.  The data points are not regularly spaced and do not align to
> any grid.  The data points represent measurements taken from a model
> that can take on a variety of shapes.  To make matters more difficult,
> I'd prefer not to interpolate around corners of the model.

It strikes me that when you are working with unstructured data like 
this, it may be better to keep it unstrucured -- do the delanauy 
triangulation and directly contour from that. It's actually prety easy 
to contour a triangular mesh.

Unfortunately, I haven't see code to do it in scipy or MPL. Am I wrong? 
Is there something there. If not, there really should be it seems a bit 
silly to shoehorn your data to a rectangular grid just to contour it.

I suppose NN interpolation is essentially doing this already, but it 
introduces issues with a boundary that doesnt' line up to a rectangular 
grid.

As I think about it, I'm going to have to write code to do this (contour 
an unstructured triangular mesh) sometime soon, so please let me know if 
it does exist already -- if not I'll try to remember to contribute it 
when I get around to it.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to