Title: | PEcAn Package for Integration of the LPJ-GUESS Model |
---|---|
Description: | This module provides functions to link LPJ-GUESS to PEcAn. |
Authors: | Istem Fer [aut, cre], Tony Gardella [aut], University of Illinois, NCSA [cph] |
Maintainer: | Istem Fer <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 1.7.3.9000 |
Built: | 2024-12-17 17:30:33 UTC |
Source: | https://github.com/PecanProject/pecan |
met2model wrapper for LPJ-GUESS
met2model.LPJGUESS( in.path, in.prefix, outfolder, start_date, end_date, overwrite = FALSE, verbose = FALSE, ... )
met2model.LPJGUESS( in.path, in.prefix, outfolder, start_date, end_date, overwrite = FALSE, verbose = FALSE, ... )
in.path |
location on disk where inputs are stored |
in.prefix |
prefix of input and output files |
outfolder |
location on disk where outputs will be stored |
start_date |
the start date of the data to be downloaded (will only use the year part of the date) |
end_date |
the end date of the data to be downloaded (will only use the year part of the date) |
overwrite |
should existing files be overwritten |
verbose |
should the function be very verbose |
... |
additional arguments, currently ignored |
Istem Fer
Convert LPJ-GUESS output to netCDF
model2netcdf.LPJGUESS(outdir, sitelat, sitelon, start_date, end_date)
model2netcdf.LPJGUESS(outdir, sitelat, sitelon, start_date, end_date)
outdir |
Location of LPJ-GUESS model output |
sitelat |
Latitude of the site |
sitelon |
Longitude of the site |
start_date |
Start time of the simulation |
end_date |
End time of the simulation |
Istem Fer
Function to translate pecan param names and units to lpjguess names and units
pecan2lpjguess(trait.values)
pecan2lpjguess(trait.values)
trait.values |
trait.values, list |
translated list
Istem Fer
read binary state file of LPJ-GUESS
readStateBinary(out.path, npft)
readStateBinary(out.path, npft)
out.path |
location on disk where model run outputs are stored |
npft |
number of pfts specified in instruction file |
Patchpft_list state variables common to all individuals of a particular PFT
Istem Fer
Writes a LPJ-GUESS config file.
write.config.LPJGUESS(defaults, trait.values, settings, run.id)
write.config.LPJGUESS(defaults, trait.values, settings, run.id)
defaults |
list of defaults to process |
trait.values |
vector of samples for a given trait |
settings |
list of settings from pecan settings file |
run.id |
id of run |
Requires a pft xml object, a list of trait values for a single model run, and the name of the file to create
configuration file for LPJ-GUESS for given run
Istem Fer, Tony Gardella
Write LPJ-GUESS instruction script
write.insfile.LPJGUESS(settings, trait.values, rundir, outdir, run.id)
write.insfile.LPJGUESS(settings, trait.values, rundir, outdir, run.id)
settings |
PEcAn settings list |
trait.values |
trait.values |
rundir |
rundir |
outdir |
outdir |
run.id |
PEcAn run ID |
settings Updated list
Istem Fer