Calculate hypsometric curves for features of polygon layer and save them as CSV file for further processing.
DEM to analyze
[raster]Boundary layer
[vector: polygon]Step
[number]Distance between curves.
Default: 100.0
Use % of area instead of absolute value
[boolean]Write area percentage to “Area” field of the CSV file instead of absolute area value.
Default: False
Output directory
[directory]Directory where output will be saved. For each feature from input vector layer CSV file with area and altitude values will be created.
File name consists of prefix hystogram_
followed by layer name and feature
ID.
processing.runalg('qgis:hypsometriccurves', input_dem, boundary_layer, step, use_percentage, output_directory)
Calculates basic statistics of the raster layer.
Input layer
[raster]Statistics
[html]Minimum value
[number]Maximum value
[number]Sum
[number]Mean value
[number]valid cells count
[number]No-data cells count
[number]Standard deviation
[number]processing.runalg('qgis:rasterlayerstatistics', input, output_html_file)
Calculates some statistics values for pixels of input raster inside certain zones, defined as polygon layer.
Following values calculated for each zone:
Raster layer
[raster]Raster band
[number]Number of raster band to analyze.
Default: 1
Vector layer containing zones
[vector: polygon]Output column prefix
[string]Prefix for output fields.
Default: _
Load whole raster in memory
[boolean]Determines if raster band will be loaded in memory (True
) or readed by
chunks (False
). Useful only when disk IO or raster scanning inefficiencies
are your limiting factor.
Default: True
Output layer
[vector]processing.runalg('qgis:zonalstatistics', input_raster, raster_band, input_vector, column_prefix, global_extent, output_layer)