museotoolbox.processing.RasterMath.get_random_block

RasterMath.get_random_block(random_state=None)[source]

Get a random block from the raster.

Parameters

random_state (int, optional (default=None)) – If int, random_state is the seed used by the random number generator. If None, the random number generator is the RandomState instance used by numpy np.random.