| snfi_volume_method_registry | R Documentation |
Return the final registry of SNFI volume methods after merging package defaults, optional user definitions, and session-level option overrides.
snfi_volume_method_registry(equations = get0("snfi_volume_equations",
inherits = TRUE,
ifnotfound = NULL))
equations |
Optional named list of SNFI method definitions to merge with the defaults; top-level names identify outputs such as |
Each registry entry is a named list that typically contains descriptive
fields such as label, equation, reference, and
description, together with computational fields such as
output, fun_name, unit, raw_unit,
scale_to_m3, build_args, and fallback. The
function checks only that the supplied registry is a named list;
downstream functions validate and use the individual fields.
When overriding a computational method, also override its descriptive
metadata so reported equations and references remain accurate.
A named list of SNFI volume-method definitions.
Names usually correspond to requested parameters such as "V",
"VCC", and "VSC".
Each element describes one computation pathway and commonly includes:
labelHuman-readable name of the volume method.
equationConcise description of the equation or computation.
referenceSource associated with the method.
descriptionShort explanation of the returned quantity.
outputName of the output column returned by the method.
fun_nameName of the equation helper called at run time, or NULL for direct passthrough methods.
unitReturned unit after scaling, usually "m3 tree-1".
raw_unitUnit returned by the underlying equation before scaling.
scale_to_m3Multiplier applied to raw outputs to express them in cubic metres.
build_argsFunction that builds the argument list for the equation helper.
fallbackFunction used when coefficients are missing or a method cannot compute the requested output.
Wilson Lara [aut, cre] (ORCID: <https://orcid.org/0000-0003-3527-1380>), Cristobal Ordonez [aut] (ORCID: <https://orcid.org/0000-0001-5354-3760>), Aitor Vázquez-Veloso [aut] (ORCID: <https://orcid.org/0000-0003-0227-506X>), Felipe Bravo [aut] (ORCID: <https://orcid.org/0000-0001-7348-6695>)
reg <- snfi_volume_method_registry()
names(reg)
reg$VCC$output
custom <- list(VCC = list(output = "vcc_m3"))
reg2 <- snfi_volume_method_registry(custom)
reg2$VCC$output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.