museotoolbox.processing.RasterMath.get_block¶
-
RasterMath.
get_block
(block_number=0, return_with_mask=False)[source]¶ Get a block by its position, ordered as follow :
block 0
block 1
block 2
block 3
- Parameters
block_number (int, optional (default=0)) – Position of the desired block.
return_with_mask (bool, optinal (default=False)) – If True and if return_3d is True, will return a numpy masked array.
- Returns
Block
- Return type
np.ndarray or np.ma.MaskedArray