Skip to content

Commit

Permalink
Processing alg - Raster min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
selmaVH1 authored and DelazJ committed Jan 29, 2025
1 parent ac2e281 commit 889f2c8
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions docs/user_manual/processing_algs/qgis/rasteranalysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3083,6 +3083,82 @@ Python code
:end-before: **end_algorithm_code_section**


.. _qgisrasterminmax:

Raster minimum/maximum
----------------------
Extracts the minimum and maximum pixel values from a specified band of a raster layer.
If multiple pixels share the same minimum or maximum value,
only one of them will be included in the output.

Parameters
..........

.. list-table::
:header-rows: 1
:widths: 20 20 20 40
:class: longtable

* - Label
- Name
- Type
- Description
* - **Input layer**
- ``INPUT``
- [raster]
- Raster layer from which to extract the minimum and maximum pixel values.
* - **Band number**
- ``BAND``
- [raster band]

Default: 1
- The band of the raster to analyze. If the raster is multiband, specify the band number (starting from 1).
* - **Extract**
- ``EXTREMA``
- [enumeration]

Default: 0 (Minimum and Maximum)
- Choose which extrema to extract:

- 0: Minimum and Maximum
- 1: Minimum only
- 2: Maximum only
* - **Output layer**
- ``OUTPUT``
- [vector: point]

Default: ``[Create temporary layer]``
- Specification of the output layer. One of:

.. include:: ../algs_include.rst
:start-after: **layer_output_types_skip**
:end-before: **end_layer_output_types_skip**

Outputs
.......

.. list-table::
:header-rows: 1
:widths: 20 20 20 40

* - Label
- Name
- Type
- Description
* - **Output layer**
- ``OUTPUT``
- [vector: point]
- Vector layer with point features at the locations of the minimum and/or maximum pixel values.

Python code
...........

**Algorithm ID**: ``native:rasterminmax``

.. include:: ../algs_include.rst
:start-after: **algorithm_code_section**
:end-before: **end_algorithm_code_section**

.. _qgisrastersurfacevolume:

Raster surface volume
Expand Down

0 comments on commit 889f2c8

Please sign in to comment.