isolate and locate closed contours


I am hoping that there is a way to use matplotlib to process a sea level pressure field and extract the closed contours therein so that I have a collection of lists with the (lon,lat) pairs that define the perimeter of each closed contour. At the very least I would like a perimeter list of each contour closed or not.

I’m guessing the answer might be something like this

Thank you for any ideas.


Mike: Yep, that’s a good place to start.


-- Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : 325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web :