Package 'PEcAn.LPJGUESS'

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

Help Index


met2model.LPJGUESS

Description

met2model wrapper for LPJ-GUESS

Usage

met2model.LPJGUESS(
  in.path,
  in.prefix,
  outfolder,
  start_date,
  end_date,
  overwrite = FALSE,
  verbose = FALSE,
  ...
)

Arguments

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

Author(s)

Istem Fer


Function to convert LPJ-GUESS model output to standard netCDF format

Description

Convert LPJ-GUESS output to netCDF

Usage

model2netcdf.LPJGUESS(outdir, sitelat, sitelon, start_date, end_date)

Arguments

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

Author(s)

Istem Fer


Function to translate pecan param names and units to lpjguess names and units

Description

Function to translate pecan param names and units to lpjguess names and units

Usage

pecan2lpjguess(trait.values)

Arguments

trait.values

trait.values, list

Value

translated list

Author(s)

Istem Fer


readStateBinary.LPJGUESS

Description

read binary state file of LPJ-GUESS

Usage

readStateBinary(out.path, npft)

Arguments

out.path

location on disk where model run outputs are stored

npft

number of pfts specified in instruction file

Value

Patchpft_list state variables common to all individuals of a particular PFT

Author(s)

Istem Fer


Write LPJ-GUESS configuration files

Description

Writes a LPJ-GUESS config file.

Usage

write.config.LPJGUESS(defaults, trait.values, settings, run.id)

Arguments

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

Details

Requires a pft xml object, a list of trait values for a single model run, and the name of the file to create

Value

configuration file for LPJ-GUESS for given run

Author(s)

Istem Fer, Tony Gardella


Write LPJ-GUESS instruction script

Description

Write LPJ-GUESS instruction script

Usage

write.insfile.LPJGUESS(settings, trait.values, rundir, outdir, run.id)

Arguments

settings

PEcAn settings list

trait.values

trait.values

rundir

rundir

outdir

outdir

run.id

PEcAn run ID

Value

settings Updated list

Author(s)

Istem Fer