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)

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.

Returns:

object OutputManager() with
  • path = output path

Examples

Perform the split of a raster
>>> split = raster_split(raster_path='input_path',
... output_path='output_path')