Skip to content

egreich/Dryland-ecosystems-do-not-use-water-efficiently-for-carbon-gain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPART-SAM Model

This repository contains models and code to run the DEPART-SAM model. An explanation of the file structure is below:

  1. scripts
  • 00_data_clean.R
    • This script reads in all necessary data and formats the information consistently across sites
    • This includes filling small data gaps
  • 01_model_prep.R
    • preps the data to be in the correct format for the Bayesian model
  • 02_script_SAM.R
    • runs the DEPART-SAM model
  • SAM_function.R
    • read in by 02_script_SAM.R
  • check_convergence_function.R
    • read in by 02_script_SAM.R
  • coda_functions.R
    • functions to help summarize JAGS coda output
  • functions.R
    • helper functions, read in by various scripts
  1. models
  • Model_v3.R
    • combined DEPART-SAM model
  • Model_split_v3.R
    • combined DEPART-SAM model, but splits the model to account for a large data gap at US-Vcp
  1. input_data
  • read into 00_data_clean.R
  1. clean_data
  • read into 01_model_prep.R and 02_script_SAM.R
  1. output_dfs
  • output data frames. Contains posterior means and uncertainty for variables of interest.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published