rasterio.sample module
- rasterio.sample.sample_gen(dataset, xy, indexes=None, masked=False)
Sample pixels from a dataset
- Parameters:
- Yields:
array – A array of length equal to the number of specified indexes containing the dataset values for the bands corresponding to those indexes.