read_sample.RdGet mean values of a raster band from each slice of a sampling box
read_sample(poly, dir, band)
| poly | is a spatial polygons object |
|---|---|
| dir | is a path to a directory of raster files |
| band | is the desired band of the raster to pull |
the mean values of the raster band across each slice of a sampling box