remotior_sensus.tools.raster_split module
Raster split.
This tool allows for splitting a raster to single bands.
Typical usage example:
>>> # import Remotior Sensus and start the session
>>> import remotior_sensus
>>> rs = remotior_sensus.Session()
>>> # start the process
>>> split = rs.raster_split(raster_path='input_path',
... output_path='output_path')
- remotior_sensus.tools.raster_split.raster_split(raster_path: str, output_path: str | None = None, prefix: None | str = None, extent_list: list | None = None, n_processes: None | int = None, virtual_output: bool | None = None, progress_message: bool | None = True) OutputManager
Split a multiband raster to single bands.
This tool allows for splitting a multiband raster to single bands.
- Parameters:
raster_path – path of raster used as input.
output_path – string of output directory path.
prefix – optional string for output name prefix.
extent_list – list of boundary coordinates left top right bottom.
n_processes – number of parallel processes.
virtual_output – if True (and output_path is directory), save output as virtual raster.
progress_message – if True then start progress message, if False does not start the progress message (useful if launched from other tools).
- Returns:
- object
OutputManager()
with path = output path
- object
Examples
- Perform the split of a raster
>>> split = raster_split(raster_path='input_path', ... output_path='output_path')