thinning Class
thinning\thinning.js:2
The thinning module include activities thinning operations.
Item Index
Methods
Methods
fromBelow
-
options
Thinning from below
Parameters:
-
optionsObject-
idStringA unique identifier for the thinning activity (default: 'ThinningFromBelow').
-
scheduleObjectschedule for the repeater (default: {min: 30, opt: 40, max: 50}).
-
intervalNumberinterval between repeated thinnings (default: 5).
-
timesNumbernumber of times to repeat the thinning (default: 5).
-
blockBooleanblock other activities in repeater (default: true).
-
modeStringmode of thinning, either 'simple' or 'dynamic' (default: 'simple').
-
thinningShareNumber | Functionshare of trees to be thinned, can be a number or a function returning a number (default: 0.1).
-
thinningClassesNumberarray defining how much of each thinning class should be removed (default: [60, 25, 15, 0, 0]).
-
speciesSelectivityNumber | Undefinedspecies list, which species should have a lower probability to get harvested (default: undefined).
-
rankingStringranking string for filtering trees, e.g. 'volume' (default: 'volume').
-
sendSignalStringsignal for triggering the thinning (default: 'thinning_execute').
-
constraintString | 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:
-
optionsObject-
idStringA unique identifier for the thinning activity (default: 'Plenter').
-
scheduleObject | Undefinedschedule for the thinning (default: undefined).
-
timesNumbernumber of thinning actions (default: 1000).
-
intervalNumberinterval between thinning actions (default: 5).
-
plenterCurveObjectobject defining target diameter distribution i.e. plenter curve.
-
dbhStepsNumberwidth of dbh classes to compare with plenterCurve (default: 5).
-
intensityNumberintensity of thinning activity, specifying which share of trees to remove should be removed (default: 1).
-
blockBooleanblock other activities in repeater (default: true).
-
sendSignalStringsignal for triggering the thinning (default: 'plenter_execute').
-
constraintString | 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:
-
optionsObject-
idStringA unique identifier for the thinning activity (default: 'selective_select_trees').
-
scheduleObject | Undefinedschedule for the thinning (default: undefined).
-
modeStringmode of thinning, either 'simple' or 'dynamic' (default: 'simple').
-
SpeciesModeStringmode of species selection, either 'simple' or 'dynamic' (default: 'simple').
-
nTreesNumber | Functionnumber of trees to select, can be a number or a function returning a number (default: 80).
-
nCompetitorsNumber | Functionnumber of competitor trees to select, can be a number or a function returning a number (default: 4).
-
speciesSelectivityObject | Functionobject defining species selectivity, can be an object or a function returning an object (default: {}).
-
preferenceFunctionString | Functionranking string for selecting trees, can be a string or a function returning a string (default: 'height').
-
intervalNumberinterval between repeated thinnings (default: 5).
-
timesNumbernumber of times to repeat the thinning (default: 5).
-
sendSignalStringsignal send out in each thinning activity (default: 'selective_thinning_remove').
-
constraintString | 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:
-
optionsObject-
idStringA unique identifier for the tending activity (default: 'Tending').
-
scheduleObject | Undefinedschedule for the tending (default: undefined).
-
timesNumbernumber of tending actions (default: 3).
-
intervalNumberinterval between tending actions (default: 2).
-
speciesSelectivityObjectobject defining species selectivity, e.g. { 'fasy': 0.9, 'abal': 0.8, 'rest': 0.2 } (default: { 'rest': 0.9 }).
-
intensityNumberintensity of tending (default: 10).
-
blockBooleanblock other activities in repeater (default: true).
-
sendSignalStringsignal for triggering the tending (default: 'tending_execute').
-
constraintString | 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 }
});
The ABE-library