VPRM (Vegetation Photosynthesis Respiration Model) is a model of NEE (Net Ecosystem Exchange) (Mahadevan et al 2008). This R package handles the driver data and calculations to run a VPRM model
This package should: - Provide a single wrapper function to run VPRM within CONUS (eventually global). - Be modular and tolerant of different sources/forms for driver data. If a new source for driver data is desired, it should be possible to slot in a new script for importing that data with minimal reconfiguration of the rest of the code. - Be semi-robust. I am a grad student, and this is one part of my research, but it should be useful to people with different computer systems than me within a reasonable amount of work.
This package is not yet hosted on CRAN. In order to install, if the R package devtools
is not installed, install it:
Rscript -e 'install.packages("devtools")'
Then, clone this repository:
git clone https://github.com/BlueGrisGris/vpRm.git
Then, navigate into the vpRm directory, and call install()
from devtools to install the package into your library.
cd vpRm
Rscript -e 'devtools::install()'
This will install the vpRm
package. Now, to begin running VPRM models, the following driver data are required, and can be downloaded from a variety of sources:
- Photosynthetically Available Radiation (PAR) or Downwelling Shortwave Radiation (SDR)
- Temperature at 2 meters above the surface
- Enhanced Vegetation Index (EVI)
- Landcover type
- Greenup and Greendown days for each pixel
- Minimum and Maximum EVI data for the year (Or a full year's worth of EVI data)
To initialize an object of class vpRm
in R, supply the filenames of your driver data to the new_vpRm()
function:
my_vpRm <- new_vpRm(
vpRm_dir
, lc_dir
, isa_dir
, temp_dir
, par_dir
, evi_dir
, evi_extrema_dir
, green_dir
)
Next, process the driver data:
proc_drivers(my_vpRm)
Finally, run the model:
run_vpRm(my_vpRm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.