read_band.RdReturns the mean value of a given raster band across a polygon.
read_band(poly, dir, band)
| poly | is a spatial polygon object |
|---|---|
| dir | is a directory of raster files |
| band | is a number specifying the desired raster band |
the mean values of the raster band masked by the polygon