thinning Class
thinning\thinning.js:2
The thinning module include activities thinning operations.
Item Index
Methods
Methods
fromBelow
-
options
Thinning from below
Parameters:
-
options
Object-
id
StringA unique identifier for the thinning activity (default: 'ThinningFromBelow').
-
schedule
Objectschedule for the repeater (default: {min: 30, opt: 40, max: 50}).
-
interval
Numberinterval between repeated thinnings (default: 5).
-
times
Numbernumber of times to repeat the thinning (default: 5).
-
block
Booleanblock other activities in repeater (default: true).
-
mode
Stringmode of thinning, either 'simple' or 'dynamic' (default: 'simple').
-
thinningShare
Number | Functionshare of trees to be thinned, can be a number or a function returning a number (default: 0.1).
-
thinningClasses
Numberarray defining how much of each thinning class should be removed (default: [60, 25, 15, 0, 0]).
-
speciesSelectivity
Number | Undefinedspecies list, which species should have a lower probability to get harvested (default: undefined).
-
ranking
Stringranking string for filtering trees, e.g. 'volume' (default: 'volume').
-
sendSignal
Stringsignal for triggering the thinning (default: 'thinning_execute').
-
constraint
String | Undefinedconstraint (default: undefined).
-
Returns:
program - An object describing the thinning program
Example:
lib.thinning.fromBelow({
schedule: { min: 25, opt: 35, max: 45 },
interval: 10,
thinningShare: 0.3
});
plenter
-
options
Plenter thinning operation
Parameters:
-
options
Object-
id
StringA unique identifier for the thinning activity (default: 'Plenter').
-
schedule
Object | Undefinedschedule for the thinning (default: undefined).
-
times
Numbernumber of thinning actions (default: 1000).
-
interval
Numberinterval between thinning actions (default: 5).
-
plenterCurve
Objectobject defining target diameter distribution i.e. plenter curve.
-
dbhSteps
Numberwidth of dbh classes to compare with plenterCurve (default: 5).
-
intensity
Numberintensity of thinning activity, specifying which share of trees to remove should be removed (default: 1).
-
block
Booleanblock other activities in repeater (default: true).
-
sendSignal
Stringsignal for triggering the thinning (default: 'plenter_execute').
-
constraint
String | Undefinedconstraint (default: undefined).
-
Returns:
program - An object describing the plenter thinning program
Example:
lib.thinning.plenter({
interval: 5,
plenterCurve: { 10: 350, 20: 150, 30: 80, 40: 40, 50: 20 },
dbhSteps: 10
});
selectiveThinning
-
options
Selective thinning operation
Parameters:
-
options
Object-
id
StringA unique identifier for the thinning activity (default: 'selective_select_trees').
-
schedule
Object | Undefinedschedule for the thinning (default: undefined).
-
mode
Stringmode of thinning, either 'simple' or 'dynamic' (default: 'simple').
-
SpeciesMode
Stringmode of species selection, either 'simple' or 'dynamic' (default: 'simple').
-
nTrees
Number | Functionnumber of trees to select, can be a number or a function returning a number (default: 80).
-
nCompetitors
Number | Functionnumber of competitor trees to select, can be a number or a function returning a number (default: 4).
-
speciesSelectivity
Object | Functionobject defining species selectivity, can be an object or a function returning an object (default: {}).
-
preferenceFunction
String | Functionranking string for selecting trees, can be a string or a function returning a string (default: 'height').
-
interval
Numberinterval between repeated thinnings (default: 5).
-
times
Numbernumber of times to repeat the thinning (default: 5).
-
sendSignal
Stringsignal send out in each thinning activity (default: 'selective_thinning_remove').
-
constraint
String | Undefinedconstraint (default: undefined).
-
Returns:
program - An object describing the thinning program
Example:
lib.thinning.selectiveThinning({
schedule: { start: 30, end: 100 },
mode: 'dynamic',
SpeciesMode: 'dynamic',
nTrees: function() { return stand.flag('nTrees') || 100; },
nCompetitors: function() { return stand.flag('nCompetitors') || 5; }
});
tending
-
options
Tending operation
Parameters:
-
options
Object-
id
StringA unique identifier for the tending activity (default: 'Tending').
-
schedule
Object | Undefinedschedule for the tending (default: undefined).
-
times
Numbernumber of tending actions (default: 3).
-
interval
Numberinterval between tending actions (default: 2).
-
speciesSelectivity
Objectobject defining species selectivity, e.g. { 'fasy': 0.9, 'abal': 0.8, 'rest': 0.2 } (default: { 'rest': 0.9 }).
-
intensity
Numberintensity of tending (default: 10).
-
block
Booleanblock other activities in repeater (default: true).
-
sendSignal
Stringsignal for triggering the tending (default: 'tending_execute').
-
constraint
String | Undefinedconstraint (default: undefined).
-
Returns:
program - An object describing the tending program
Example:
lib.thinning.tending({
times: 5,
interval: 3,
speciesSelectivity: { 'piab': 0.7, 'lade': 0.6 }
});