This repository processes vegetation plot data from the CDFW Vegcamp project and uploads it to VegBank.
There are two main steps:
- Transform data from CDFW format (e.g., RAPlots, RAClassification) to the VegBank loader table format
- Validate and upload data to VegBank
For more information on the VegBank upload process, see the data upload vignette on the vegbankr website.
-
transform-input-data.R- Reads raw data files from your input directory and transforms them into VegBank loader table format. This handles field mapping, data cleaning, and normalization. This script sources and runs all of the functions in theR/directory, which read from both the specified input data and the lookup tables indata/lookup-tables. -
upload-plot-observations.R- Validates and uploads plot observation data (including plots, projects, parties, soils, disturbances, strata, and species data) to VegBank. Reads from the loader table CSVs written bytransform-input-data.R. -
upload-community-classifications.R- Uploads community classification data for existing plots to VegBank. Reads from the loader table CSVs written bytransform-input-data.R.
- Run
transform-input-data.Rto convert your raw data into loader tables - Examine the output and validation messages
- Debug input data, code, and/or lookup tables as needed
- Re-run
transform-input-data.Rwith corrected data/code/lookup tables - Repeat steps 2-4 until validation in
upload-plot-oservations.Rstep passes - Run
upload-plot-observations.Rto upload plot data to VegBank - (Optional) Run
upload-community-classifications.Rif uploading classifications to existing plots