Raster normalization

remote_sensing_processor.normalize(input_file, output_file, minimum=None, maximum=None)[source]

Applies min-max normalization to input file.

Parameters:
  • input_file (string) – Path to input file.

  • output_file (string) – Path to output file.

  • minimum (int or float (optional)) – Min value for normalization. If not defined then min and max of data type of input_file will be used.

  • maximum (int or float (optional)) – Max value for normalization. If not defined then min and max of data type of input_file will be used.

Examples

>>> rsp.normalize(
...     '/home/rsp_test/mosaics/sentinel/B1.tif',
...     '/home/rsp_test/mosaics/sentinel/B1_norm.tif',
...     0,
...     10000,
... )