Skip to content

Commit

Permalink
document and lazy-load BADM
Browse files Browse the repository at this point in the history
  • Loading branch information
infotroph committed Feb 16, 2024
1 parent a5717b4 commit 8472eda
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 936 deletions.
1 change: 1 addition & 0 deletions modules/data.land/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ Suggests:
testthat (>= 1.0.2)
License: BSD_3_clause + file LICENSE
Copyright: Authors
LazyData: true
Encoding: UTF-8
RoxygenNote: 7.2.3
3 changes: 1 addition & 2 deletions modules/data.land/R/IC_BADM_Utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Read.IC.info.BADM <-function(lat, long){
cov.factor <-1
#Reading in the DB
#
U.S.SB <-
load(system.file("data","BADM.rda", package = "PEcAn.data.land"))
U.S.SB <- PEcAn.data.land::BADM


Regions <- EPA_ecoregion_finder(lat, long)
Expand Down
22 changes: 22 additions & 0 deletions modules/data.land/R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#' Biomass and soil data from FluxNet sites
#'
#' Contains data from 246 Fluxnet sites.
#' Variables include aboveground and belowground biomass in various pools,
#' plus soil texture/chemistry/horizonation/C&N stocks.
#'
#' @format ## `BADM`
#' A data frame with 12,300 rows and 13 columns:
#' \describe{
#' \item{SITE_ID}{Fluxnet code for the site}
#' \item{LOCATION_ELEV, LOCATION_LAT, LOCATION_LON}{site coordinates}
#' \item{Date}{Measurement date}
#' \item{GROUP_ID}{TODO}
#' \item{VARIABLE_GROUP}{category, eg abovground biomass or soil chemistry}
#' \item{VARIABLE, DATAVALUE}{key and value for each measured variable}
#' \item{NA_L1CODE, NA_L1NAME, NA_L2CODE, NA_L2NAME}{
#' numeric IDs and names for the Level 1 and level 2 ecoregions where
#' this site is located}
#' }
#' @source Originally from Fluxnet <https://fluxnet.org/badm-data-product/>,
#' but the provenence and age of this specific file is not clear.
"BADM"
34 changes: 34 additions & 0 deletions modules/data.land/man/BADM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8472eda

Please sign in to comment.