Package: CBMutils 0.0.7.9011

Alex M Chubaty

CBMutils: Utilities for modelling carbon based on CBM-CFS3

Implementation of several components of the Carbon Budget Model of the Canadian Forest Service (v3).

Authors:Céline Boisvenue [aut], Alex M Chubaty [aut, cre], Ian Eddy [ctb], Eliot McIntire [aut]

CBMutils_0.0.7.9011.tar.gz
CBMutils_0.0.7.9011.zip(r-4.5)CBMutils_0.0.7.9011.zip(r-4.4)CBMutils_0.0.7.9011.zip(r-4.3)
CBMutils_0.0.7.9011.tgz(r-4.4-x86_64)CBMutils_0.0.7.9011.tgz(r-4.4-arm64)CBMutils_0.0.7.9011.tgz(r-4.3-x86_64)CBMutils_0.0.7.9011.tgz(r-4.3-arm64)
CBMutils_0.0.7.9011.tar.gz(r-4.5-noble)CBMutils_0.0.7.9011.tar.gz(r-4.4-noble)
CBMutils_0.0.7.9011.tgz(r-4.4-emscripten)CBMutils_0.0.7.9011.tgz(r-4.3-emscripten)
CBMutils.pdf |CBMutils.html
CBMutils/json (API)

# Install 'CBMutils' in R:
install.packages('CBMutils', repos = c('https://predictiveecology.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/predictiveecology/cbmutils/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

3.70 score 3 scripts 63 exports 71 dependencies

Last updated 14 hours agofrom:b8ec28f3e9 (on development). Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 17 2024
R-4.5-win-x86_64NOTEOct 17 2024
R-4.5-linux-x86_64NOTEOct 17 2024
R-4.4-win-x86_64NOTEOct 17 2024
R-4.4-mac-x86_64NOTEOct 17 2024
R-4.4-mac-aarch64NOTEOct 17 2024
R-4.3-win-x86_64NOTEOct 17 2024
R-4.3-mac-x86_64NOTEOct 17 2024
R-4.3-mac-aarch64NOTEOct 17 2024

Exports:.pooldef.pooldefids.poolids.poolnamesb_mbarPlotbiomassTurnoverMatrixbiomPropcalcCcalcTurnoverRatescarbonOutPlotcheckPropcheckTransactionscomputeBioTurnoverMatricescomputeDomDecayMatricescomputeDomTurnoverMatricesComputeGrowthAndDeclineMatricesComputeGrowthAndDeclineMatrices2ComputeGrowthIncrementsComputeOvermatureDeclinecomputeSlowDecayMatricescomputeSlowMixingMatrixconvertM3biomcumPoolsCreatecumPoolsSmoothdecayRatedomDecayMatrixdomDecayMatrixItemdomTurnOverMatrixgcidsCreategetDecayRatesgetIdentityCoordinateMatrixgetTablehashhistDistloadDisturbanceMatrixIdsm3ToBiomIncOnlyPlotsm3ToBiomPlotsm3ToVolCheckPlotsmatrixDTmatrixHashnmfacNPPNPPplotplotCarbonRastersprepInputsEcozonesprepInputsVRIprepInputsVRIagequeryreadSqlFileretrieveSpuRastersapfacseeDistsimDistslowDecayMatrixspatialPlotspatialRasterspatialUnitDecayRatesSpinupspuDistStepPoolsStepPoolsRefws3Build

Dependencies:bitbit64blobcachemclassclassIntclicolorspacecpp11crayondata.tableDBIDEoptimRdigeste1071fansifarverfasterizefastmapfilelockfpComparefsggforceggplot2gluegtableisobandKernSmoothlabelinglatticelifecyclelobstrmagrittrMASSMatrixmemoisemgcvmunsellnlmepillarpkgconfigplogrpolyclipprettyunitsproxyquickPlotR6rasterRColorBrewerRcppRcppArmadilloRcppEigenreproduciblerlangrobustbaseRSQLites2scalessfspsystemfontsterratibbletidyselecttweenrunitsutf8vctrsviridisLitewithrwk

i-overview

Rendered fromi-overview.Rmdusingknitr::rmarkdownon Oct 17 2024.

Last update: 2020-10-02
Started: 2020-07-29

Readme and manuals

Help Manual

Help pageTopics
'CBMutils'CBMutils-package CBMutils
Disturbance matrix pool names and ids.pooldef .pooldefids .poolids .poolnames
Calculate stemwood biomass (per ha) of live merchantable treesb_m
'barPlot'barPlot
Biomass turnover matrixbiomassTurnoverMatrix
Proportions of total tree biomass in stemwood, bark, branches, and foliagebiomProp
Sum carbon for 'totalCarbon' or 'aboveGround' or 'belowGround'calcC
Calculate turnover ratescalcTurnoverRates
'carbonOutPlot'carbonOutPlot
check that the proportions add up to 1checkProp
Verify and check transactionscheckTransactions
Compute Turnover MatricescomputeBioTurnoverMatrices
Compute all dom decay matrices in coordinate matrix formatcomputeDomDecayMatrices
Compute DOM turnover matricescomputeDomTurnoverMatrices
Compute growth and decline matricesComputeGrowthAndDeclineMatrices
Compute growth and decline matricesComputeGrowthAndDeclineMatrices2
Compute growth coordinate matricesComputeGrowthCoordinateMatrices
Compute growth incrementsComputeGrowthIncrements
Compute overmature declineComputeOvermatureDecline
Compute overmature decline coordinate matricesComputeOverMatureDeclineCoordinateMatrices
Compute slow decay matricescomputeSlowDecayMatrices
Compute slow mixing matrixcomputeSlowMixingMatrix
Calculate biomass from gross merchantable volumeconvertM3biom
Create 'cumPools' data.tablecumPoolsCreate
Smooth the 'cumPools' 'data.table'cumPoolsSmooth
Dataset classdataset-class
Calculate the decay rate based on mean annual temperature and other parametersdecayRate
Compute a single dom decay matrix based on the specified table of decay ratesdomDecayMatrix
Calculate a portion of the DOM decay matrixdomDecayMatrixItem
DOM turnover matrixdomTurnOverMatrix
Standardized way to create gcidsgcidsCreate
Get decay ratesgetDecayRates
getIdentityCoordinateMatrixgetIdentityCoordinateMatrix
getTablegetTable
Hashing functionshash matrixHash
Historical disturbanceshistDist
Load disturbance matrix IDsloadDisturbanceMatrixIds
'm3ToBiomIncOnlyPlots'm3ToBiomIncOnlyPlots
Plot all columns that are not id_colm3ToBiomPlots
m3ToVolCheckPlotsm3ToVolCheckPlots
Make a 'data.table' out of the carbon transfer matricesmatrixDT
Expansion factor for non-merchantable live tree biomassnmfac
Calculate post-simulation net primary productivityNPP
'NPPplot'NPPplot
Plotting poolsplotCarbonRasters
'prepInputsEcozones'prepInputsEcozones
'prepInputsVRI'prepInputsVRI
Read in the BC VRI, with growth curve information (from 'ws3'), and creates a raster stack of the ageprepInputsVRIage
queryquery
readSqlFilereadSqlFile
Produce a raster with 'spUnits'retrieveSpuRaster
Expansion factor for sapling-sized treessapfac
See disturbancesseeDist
get the descriptive name and proportions transferred for disturbances in a simulation requires a simulation list post simulations (from spades()) and returns a list of data.frames. Each data had the descriptive name of a disturbance used in the simulations, the disturbance matrix identification number from cbm_defaults, the pool from which carbon is taken (source pools) in this specific disturbance, the pools into which carbon goes, and the proportion in which the carbon-transfers are completed.simDist
Slow decay matrixslowDecayMatrix
'spatialPlot'spatialPlot
PlotspatialRaster
Spatial unit decay ratesspatialUnitDecayRates
SpinupSpinup
Identify the ID number (CBM-CFS3 legacy) possible in the current spatial unitspuDist
Step through pools, computing carbon transfersStepPools
Step through pools, computing carbon transfersStepPoolsRef
'ws3Build'ws3Build