Skip to content

r.pi.nlm.stats

Neutral Landscape Generator - index statistics

r.pi.nlm.stats [-a] [input1=name] output=string [keyval=integer] [nullval=integer [,integer,...]] [landcover=float] [sharpness=float] n=integer method=string [,string,...] statmethod=string [,string,...] [seed=integer] [title="phrase"] [--verbose] [--quiet] [--qq] [--ui]

Example:

r.pi.nlm.stats output=string n=integer method=string statmethod=string

grass.script.run_command("r.pi.nlm.stats", input1=None, output, keyval=None, nullval=None, landcover=None, sharpness=None, n, method, statmethod, seed=None, title=None, flags=None, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("r.pi.nlm.stats", output="string", n=integer, method="string", statmethod="string")

Parameters

input1=name
    Name of input raster map
output=string [required]
    Name for output ASCII-file (use out=- for stdout)
keyval=integer
    Value of a category from the input file to measure desired landcover
nullval=integer [,integer,...]
    Values marking areas from the input file, which are to be NULL in the resulting map
landcover=float
    Landcover in percent
sharpness=float
    Small values produce smooth structures, great values produce sharp, edgy structures - Range [0-1]
n=integer [required]
    Number of maps to generate
method=string [,string,...] [required]
    Operation to perform on fragments
    Allowed values: distance, area, perimeter, shapeindex, fractal
statmethod=string [,string,...] [required]
    Statistical method to perform on the values
    Allowed values: average, mode, median, variance, min, max
seed=integer
    Seed for random number generator
title="phrase"
    Title for resultant raster map
-a
    Set for 8 cell-neighbors. 4 cell-neighbors are default
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

input1 : str, optional
    Name of input raster map
    Used as: input, raster, name
output : str, required
    Name for output ASCII-file (use out=- for stdout)
    Used as: output
keyval : int, optional
    Value of a category from the input file to measure desired landcover
nullval : int | list[int] | str, optional
    Values marking areas from the input file, which are to be NULL in the resulting map
landcover : float, optional
    Landcover in percent
sharpness : float, optional
    Small values produce smooth structures, great values produce sharp, edgy structures - Range [0-1]
n : int, required
    Number of maps to generate
method : str | list[str], required
    Operation to perform on fragments
    Allowed values: distance, area, perimeter, shapeindex, fractal
statmethod : str | list[str], required
    Statistical method to perform on the values
    Allowed values: average, mode, median, variance, min, max
seed : int, optional
    Seed for random number generator
title : str, optional
    Title for resultant raster map
    Used as: "phrase"
flags : str, optional
    Allowed values: a
    a
        Set for 8 cell-neighbors. 4 cell-neighbors are default
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

Neutral Landscape Generator - index statistics

NOTES

...

EXAMPLE

An example for the North Carolina sample dataset:

g.region -d
...

SEE ALSO

r.pi.nlm, r.pi

AUTHORS

Programming: Elshad Shirinov
Scientific concept: Dr. Martin Wegmann
Department of Remote Sensing
Remote Sensing and Biodiversity Unit
University of Wuerzburg, Germany

Port to GRASS GIS 7: Markus Metz

SOURCE CODE

Available at: r.pi.nlm.stats source code (history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819