Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
2307989
v2 depreciated functions removed; DESCRIPTION updated
suz-estella Mar 13, 2025
e292718
Merge remote-tracking branch 'origin/development' into suz-v2
suz-estella Mar 13, 2025
46eb31a
Merge pull request #37 from suz-estella/suz-v2
cboisvenue Mar 14, 2025
8aef760
files reorganized
suz-estella Mar 14, 2025
31be9af
ReticulateFindPython function added
suz-estella Mar 14, 2025
9ed6965
test fix
suz-estella Mar 14, 2025
77e1674
test fix
suz-estella Mar 14, 2025
36c877a
Merge pull request #39 from suz-estella/suz-v2
cboisvenue Mar 14, 2025
d48bc82
ReticulateFindPython function added: test fixes (#3)
suz-estella Mar 14, 2025
35dde58
Merge pull request #40 from suz-estella/reticulate
cboisvenue Mar 14, 2025
99d6533
update with LandRCBM 2.0
DominiqueCaron Mar 19, 2025
fdc4dcd
fix small error
DominiqueCaron Mar 19, 2025
7a6997d
change species to speciesCode
DominiqueCaron Mar 19, 2025
8d799f8
adjust tests and fix typo
DominiqueCaron Mar 20, 2025
b8585f1
spuDistMatch: unique options presented to user
suz-estella Mar 24, 2025
c12f7ce
fix doc
DominiqueCaron Mar 24, 2025
eda0796
New functions: dataPrep_disturbanceRasters and dataPrep_disturbanceRa…
suz-estella Mar 24, 2025
59655f4
dataPrep_disturbanceRasters function documentation update
suz-estella Mar 24, 2025
87f262c
dataPrep_disturbanceRasters function simplified
suz-estella Mar 25, 2025
553609b
eventID integer
suz-estella Mar 25, 2025
f07131b
Merge pull request #42 from suz-estella/dev-distRasters
cboisvenue Mar 25, 2025
ed64bb6
test data URL updated
suz-estella Mar 25, 2025
fe1a25e
Merge branch 'development' into LandRCBM-updates
camillegiuliano Mar 25, 2025
c63f25f
Merge pull request #41 from DominiqueCaron/LandRCBM-updates
cboisvenue Mar 25, 2025
674bfc5
updating simDist()
camillegiuliano Mar 26, 2025
f27cf7b
Merge pull request #43 from camillegiuliano/development
cboisvenue Mar 26, 2025
b9fd018
test helper functions updated
suz-estella Mar 27, 2025
9c2fa77
Merge branch 'development' of https://github.com/PredictiveEcology/CB…
suz-estella Mar 27, 2025
2a67bb8
simDist documentation update
suz-estella Mar 27, 2025
1a2615d
new function: adjustStandAges
suz-estella Mar 28, 2025
22da8b9
version 2.0.2
suz-estella Mar 28, 2025
240d444
test fix: warning not expected
suz-estella Mar 28, 2025
bd30825
Merge pull request #44 from suz-estella/development2
cboisvenue Apr 4, 2025
5f50da1
small fix to spatialPlot function so NAs don't become 0s
camillegiuliano Apr 25, 2025
25f9b87
Merge pull request #45 from camillegiuliano/development
cboisvenue Apr 25, 2025
e501c56
plotting now works with new spadesCBM objects
camillegiuliano Apr 28, 2025
5fa579f
more plotting fixes
camillegiuliano Apr 28, 2025
5634a99
wip/ dir added to .gitignore [skip-ci]
suz-estella Apr 29, 2025
28d42c3
wip/ dir added to .Rbuildignore [skip-ci]
suz-estella Apr 29, 2025
4afab7d
R CMD check fixes
suz-estella Apr 29, 2025
6097a36
updated function documentation and globalVariables for plotting
camillegiuliano Apr 29, 2025
e7800c9
Merge branch 'PredictiveEcology:development' into development
camillegiuliano Apr 29, 2025
c947998
Merge pull request #46 from camillegiuliano/development
cboisvenue Apr 29, 2025
d05662d
new function sppMatch
suz-estella Apr 30, 2025
265a8f2
comment fix
suz-estella Apr 30, 2025
710786d
sppMatch: test match with 'LandR' column
suz-estella Apr 30, 2025
cdc5d37
Merge pull request #47 from suz-estella/suz-sppMatchFunc
cboisvenue Apr 30, 2025
e600fc9
new function to subset boudewyn tables
camillegiuliano Apr 30, 2025
87508b1
add comments to boudewynSubset function
camillegiuliano May 1, 2025
7cb2432
boudewynSubsetTables add documentation
camillegiuliano May 1, 2025
df30cac
sppMatch update: 'matchCol' argument renamed 'match'; 'return' argume…
suz-estella May 2, 2025
baa2fd0
Merge pull request #49 from suz-estella/suz-sppMatch
cboisvenue May 2, 2025
61da5af
update version # and add mini test for boudewynSubsetTable function
camillegiuliano May 5, 2025
c285df0
Merge branch 'development' into development
camillegiuliano May 5, 2025
c460c1d
oops added a break in the description file
camillegiuliano May 5, 2025
8df60e7
add boudewynSubsetTable test to devel-runTests
camillegiuliano May 5, 2025
0bada22
boudewynSubsetTable test fix
camillegiuliano May 5, 2025
530f6c4
ah! typo in boudewynSubsetTable test fix
camillegiuliano May 5, 2025
2f21a48
ah! typo again in boudewynSubsetTables
camillegiuliano May 5, 2025
c9ba88a
boudewynSubsetTable test fix
camillegiuliano May 5, 2025
19cb898
Merge pull request #48 from camillegiuliano/development
camillegiuliano May 5, 2025
2ac676c
plotting: changes to carbonOutPlot
camillegiuliano May 7, 2025
801e0e5
carbonOutPlot edits
camillegiuliano May 7, 2025
6d4e1eb
"cohortGroupID" added to global variables
suz-estella May 12, 2025
43ac503
boudewynSubsetTables bugfix
camillegiuliano May 12, 2025
bbc2c8e
changes to m3ToBiomPlots
camillegiuliano May 13, 2025
6e2e4d3
m3RoBiomPlots documentation update
camillegiuliano May 13, 2025
bd6cc17
update version to 2.0.2.0003
camillegiuliano May 13, 2025
fa614bf
add new package to description file
camillegiuliano May 13, 2025
1fbc9ec
Merge pull request #51 from camillegiuliano/newM3ToBiomPlots
cboisvenue May 13, 2025
e0eca71
R CMD check fixes
suz-estella May 13, 2025
97155d4
m3ToBiomPlots bugfix
camillegiuliano May 14, 2025
fe33e5c
m3ToBiomPlots bugfix
camillegiuliano May 14, 2025
a3ccc59
doc update
suz-estella May 14, 2025
f9c5e5a
m3ToBiomPlots bugfix and documentation update
camillegiuliano May 14, 2025
fc18321
m3ToBiomPLots bugfix
camillegiuliano May 14, 2025
e86f3fe
doc update
suz-estella May 16, 2025
345e045
matchSelect utils function added; sppMatch gets 'otherSpecies' argument
suz-estella May 16, 2025
ee56228
disturbances functions update
suz-estella May 16, 2025
0a45ed4
Merge pull request #52 from PredictiveEcology/suz-distMatch
cboisvenue May 17, 2025
71c2e30
dataPrep_disturbanceRasters update: rasters can be tiles; rasters can…
suz-estella May 20, 2025
9972308
convertM3Biom now also subsets by jurisID
camillegiuliano May 26, 2025
af4ecb5
convertM3Biom fix: cannot subset by jurisID for table5
camillegiuliano May 28, 2025
82da84e
update version #
camillegiuliano May 28, 2025
0e433b8
spatialPlot fix: masterRaster does not need to be named "ldSp_TestArea"
suz-estella Jun 2, 2025
f76f70b
NPP fix: masterRaster does not need to be named "ldSp_TestArea"
suz-estella Jun 2, 2025
6a18c75
NPP fix: masterRaster does not need to be named "ldSp_TestArea"
suz-estella Jun 2, 2025
87f7f53
Merge branch 'development' of https://github.com/PredictiveEcology/CB…
suz-estella Jun 2, 2025
47364c8
fix to convertM3Biom to subset table 5 by jurisID
camillegiuliano Jun 3, 2025
b9aac3f
spatialPlot
DominiqueCaron Jun 9, 2025
2464ddc
NppPlot
DominiqueCaron Jun 9, 2025
92e58d6
get cohort group right
DominiqueCaron Jun 10, 2025
943a748
add doc
DominiqueCaron Jun 10, 2025
96d5d1f
cleaning
DominiqueCaron Jun 10, 2025
257cd1d
add tests and roxygenize
DominiqueCaron Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
^codecov\.yml$
^man-roxygen$
^README\.md$
wip/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
inst/doc
wip/
107 changes: 49 additions & 58 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,58 +1,49 @@
Package: CBMutils
Type: Package
Title: Utilities for modelling carbon based on CBM-CFS3
Description: Implementation of several components of the Carbon Budget Model of the
Canadian Forest Service (v3).
URL:
https://github.com/PredictiveEcology/CBMutils,
https://docs.google.com/spreadsheets/d/1SNHvHpr7SVIMfaxOdKENYElwiME75GK-jl3vaVQb6-w
Date: 2025-03-13
Version: 1.0
Authors@R: c(
person("Céline", "Boisvenue", email = "celine.boisvenue@nrcan-rncan.gc.ca", role = c("aut")),
person("Alex M", "Chubaty", email = "achubaty@for-cast.ca", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7146-8135")),
person("Eliot", "McIntire", email = "eliot.mcintire@nrcan-rncan.gc.ca", role = c("aut")),
person("Ian", "Eddy", email = "ian.eddy@nrcan-rncan.gc.ca", role = c("ctb")),
person("Camille", "Giuliano", email = "camsgiu@gmail.com", role = c("ctb")),
person("Susan", "Murray", email = "murray.e.susan@gmail.com", role = c("ctb")),
person("Dominique", "Caron", email = "dominique.caron@nrcan-rncan.gc.ca", role = c("ctb"))
)
License: GPL-3
Depends: R (>= 4.2)
LinkingTo:
Rcpp
Imports:
cowplot,
crayon,
data.table,
fasterize,
ggforce,
ggplot2,
knitr,
LandR,
magrittr,
methods,
quickPlot (>= 0.1.8.9001),
raster,
reproducible,
robustbase,
Rcpp,
RSQLite,
scales,
sf,
sp,
terra
Suggests:
covr,
devtools,
rmarkdown,
testthat,
withr
Remotes:
PredictiveEcology/LandR@development,
PredictiveEcology/quickPlot@development,
PredictiveEcology/reproducible@development
VignetteBuilder: knitr, rmarkdown
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Package: CBMutils
Type: Package
Title: Utilities for modelling carbon based on CBM-CFS3
Description: Implementation of several components of the Carbon Budget Model of the
Canadian Forest Service (v3).
URL:
https://github.com/PredictiveEcology/CBMutils
Version: 2.0.3.0005
Authors@R: c(
person("Céline", "Boisvenue", email = "celine.boisvenue@nrcan-rncan.gc.ca", role = c("aut")),
person("Alex M", "Chubaty", email = "achubaty@for-cast.ca", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7146-8135")),
person("Eliot", "McIntire", email = "eliot.mcintire@nrcan-rncan.gc.ca", role = c("aut")),
person("Ian", "Eddy", email = "ian.eddy@nrcan-rncan.gc.ca", role = c("ctb")),
person("Camille", "Giuliano", email = "camsgiu@gmail.com", role = c("ctb")),
person("Susan", "Murray", email = "murray.e.susan@gmail.com", role = c("ctb")),
person("Dominique", "Caron", email = "dominique.caron@nrcan-rncan.gc.ca", role = c("ctb"))
)
License: GPL-3
Depends: R (>= 4.2)
Imports:
cowplot,
crayon,
data.table,
exactextractr,
ggforce,
ggplot2,
knitr,
LandR,
methods,
patchwork,
reproducible,
reticulate,
robustbase,
RSQLite,
scales,
terra,
withr
Suggests:
covr,
devtools,
rmarkdown,
testthat
Remotes:
PredictiveEcology/LandR@development,
PredictiveEcology/reproducible@development
VignetteBuilder: knitr, rmarkdown
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
109 changes: 28 additions & 81 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,112 +1,71 @@
# Generated by roxygen2: do not edit by hand

export(.pooldef)
export(.pooldefids)
export(.poolids)
export(.poolnames)
export(ComputeGrowthAndDeclineMatrices)
export(ComputeGrowthAndDeclineMatrices2)
export(ComputeGrowthIncrements)
export(ComputeOvermatureDecline)
export(NPP)
export(NPPplot)
export(Spinup)
export(StepPools)
export(StepPoolsRef)
export(ReticulateFindPython)
export(adjustStandAges)
export(b_m)
export(barPlot)
export(biomProp)
export(biomassTurnoverMatrix)
export(boudewynSubsetTables)
export(calcC)
export(calcTurnoverRates)
export(carbonOutPlot)
export(checkProp)
export(checkTransactions)
export(computeBioTurnoverMatrices)
export(computeDomDecayMatrices)
export(computeDomTurnoverMatrices)
export(computeSlowDecayMatrices)
export(computeSlowMixingMatrix)
export(convertAGB2pools)
export(convertM3biom)
export(cumPoolsCreate)
export(cumPoolsCreateAGB)
export(cumPoolsSmooth)
export(decayRate)
export(domDecayMatrix)
export(domDecayMatrixItem)
export(domTurnOverMatrix)
export(dataPrep_disturbanceRasters)
export(dataPrep_disturbanceRastersURL)
export(distMatch)
export(gcidsCreate)
export(getDecayRates)
export(getIdentityCoordinateMatrix)
export(getTable)
export(hash)
export(histDist)
export(loadDisturbanceMatrixIds)
export(m3ToBiomIncOnlyPlots)
export(m3ToBiomPlots)
export(m3ToVolCheckPlots)
export(matrixDT)
export(matrixHash)
export(nmfac)
export(plotCarbonRasters)
export(prepInputsEcozones)
export(prepInputsVRI)
export(prepInputsVRIage)
export(query)
export(readSqlFile)
export(retrieveSpuRaster)
export(sapfac)
export(seeDist)
export(simDist)
export(slowDecayMatrix)
export(spatialPlot)
export(spatialRaster)
export(spatialUnitDecayRates)
export(spuDist)
export(sppMatch)
export(spuDistList)
export(spuDistMatch)
export(ws3Build)
exportClasses(dataset)
export(spuHistDist)
import(methods)
importFrom(RSQLite,dbConnect)
importFrom(RSQLite,dbDisconnect)
importFrom(RSQLite,dbDriver)
importFrom(RSQLite,dbGetQuery)
importFrom(RSQLite,dbListTables)
importFrom(RSQLite,dbReadTable)
importFrom(Rcpp,sourceCpp)
importFrom(cowplot,plot_grid)
importFrom(crayon,red)
importFrom(crayon,yellow)
importFrom(data.table,as.data.table)
importFrom(data.table,copy)
importFrom(data.table,data.table)
importFrom(data.table,key)
importFrom(data.table,melt)
importFrom(data.table,melt.data.table)
importFrom(data.table,merge.data.table)
importFrom(data.table,rbindlist)
importFrom(data.table,set)
importFrom(data.table,setkey)
importFrom(data.table,setkeyv)
importFrom(data.table,setnames)
importFrom(data.table,setorderv)
importFrom(fasterize,fasterize)
importFrom(exactextractr,exact_resample)
importFrom(ggforce,facet_wrap_paginate)
importFrom(ggforce,theme_no_axes)
importFrom(ggplot2,aes)
importFrom(ggplot2,element_text)
importFrom(ggplot2,expansion)
importFrom(ggplot2,facet_wrap)
importFrom(ggplot2,geom_bar)
importFrom(ggplot2,geom_col)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,geom_raster)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggsave)
importFrom(ggplot2,ggtitle)
importFrom(ggplot2,guide_legend)
importFrom(ggplot2,guides)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_fill_brewer)
importFrom(ggplot2,scale_fill_continuous)
importFrom(ggplot2,scale_fill_discrete)
importFrom(ggplot2,scale_fill_manual)
importFrom(ggplot2,scale_x_continuous)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,sec_axis)
Expand All @@ -115,40 +74,28 @@ importFrom(ggplot2,theme_bw)
importFrom(ggplot2,theme_classic)
importFrom(ggplot2,xlab)
importFrom(knitr,kable)
importFrom(magrittr,"%>%")
importFrom(quickPlot,Plot)
importFrom(quickPlot,clearPlot)
importFrom(raster,"crs<-")
importFrom(raster,couldBeLonLat)
importFrom(raster,crop)
importFrom(raster,crs)
importFrom(raster,extent)
importFrom(raster,mosaic)
importFrom(raster,ncell)
importFrom(raster,raster)
importFrom(raster,shapefile)
importFrom(raster,stack)
importFrom(reproducible,checkPath)
importFrom(reproducible,postProcess)
importFrom(reproducible,prepInputs)
importFrom(patchwork,plot_annotation)
importFrom(patchwork,plot_layout)
importFrom(patchwork,wrap_plots)
importFrom(reproducible,preProcess)
importFrom(robustbase,nlrob)
importFrom(scales,pretty_breaks)
importFrom(sf,st_as_sf)
importFrom(sf,st_crop)
importFrom(sf,st_crs)
importFrom(sf,st_read)
importFrom(sf,st_transform)
importFrom(sp,identicalCRS)
importFrom(sp,spTransform)
importFrom(stats,approx)
importFrom(stats,as.formula)
importFrom(stats,na.omit)
importFrom(stats,predict)
importFrom(stats,runif)
importFrom(stats,time)
importFrom(terra,cellSize)
importFrom(terra,compareGeom)
importFrom(terra,crs)
importFrom(terra,disagg)
importFrom(terra,mosaic)
importFrom(terra,nlyr)
importFrom(terra,project)
importFrom(terra,rast)
importFrom(terra,res)
importFrom(terra,unwrap)
importFrom(terra,values)
importFrom(utils,download.file)
importFrom(utils,tail)
useDynLib(CBMutils, .registration = TRUE)
importFrom(utils,unzip)
63 changes: 0 additions & 63 deletions R/BCharvestAndVRI.R

This file was deleted.

File renamed without changes.
Loading
Loading