From: Matt S. <sle...@gm...> - 2011-11-03 23:21:09
|
I've used Pyshapelib and Polygon to do this type of analysis in the past. Thuban may get ya what you need. On Thu, Nov 3, 2011 at 3:40 PM, questions anon <que...@gm...>wrote: > Hi All, > Is there a way to select only the values within a particular shapefile to > analyse. > I would like to do something like: > > array=numpyarraycoveringtemperatureofwholestate > shapefile=forestedregions.shp > > newarray=ma.masked_values(array, shapefile) > meantemperatureofforestedregions=MA.mean(newarray) > print meantemperatureofforestedregions > > > Any ideas of functions I could use, examples I could follow? > thanks > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |