[SciPy-User] Obtaining constant contours

Zachary Pincus zachary.pincus@yale....
Thu Nov 4 18:31:21 CDT 2010


I've got a C extension that does "marching squares" on 2D raster data  
to get iso-contour lines out (to sub-pixel resolution via linear  
interpolation). It's pretty fast, if this is something you're going to  
be doing a lot.

I'll send it along if desired...

Zach


On Nov 4, 2010, at 7:13 PM, Christopher Barker wrote:

> On 11/4/10 4:06 PM, Nikolaus Rath wrote:
>> In other words, I want a
>> numerical version of what matplotlib's contour() function plots  
>> when I
>> request a single level curve.
>
> If you poke into the MPL contour code a bit, you should be able to
> extract the data used to draw the contours -- i.e. what you want.
>
> -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.Barker@noaa.gov
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list