|
From: Pierre GM <pgm...@gm...> - 2007-11-02 19:41:52
|
On Friday 02 November 2007 15:10:15 Michael Hearne wrote: > Is there an easy way to do this with matplotlib/basemap tools? I'm afraid that not. Your problem is that you need to find for each cell of your gridded data whether you are on land or in an ocean, and mask the corresponding cell in the latter case. Such a manipulation of geometry is not available in matplotlib (yet, and will it ever be?). You could of course start writing your tests. However, that's exactly what OGR is designed to do, and the couple of functions I sent earlier can be quite helpful. Once again, OGR is part of the GDAL suite. |