Package 'PEcAn.STICS'

Title: PEcAn Package for Integration of the STICS Model
Description: This module provides functions to link the STICS to PEcAn.
Authors: Istem Fer [aut, cre]
Maintainer: Istem Fer <[email protected]>
License: BSD_3_clause + file LICENSE
Version: 1.8.0.9000
Built: 2024-12-17 17:33:51 UTC
Source: https://github.com/PecanProject/pecan

Help Index


Write STICS met files

Description

Converts a met CF file to a model specific met file. The input files are calld <in.path>/<in.prefix>.YYYY.cf

Usage

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

Arguments

in.path

path on disk where CF file lives

in.prefix

prefix for each file

outfolder

location where model specific output is written.

start_date

start date of the simulation

end_date

end date of the simulation

overwrite

logical: replace output files if they already exist?

...

other arguments passed to function

Value

results

Author(s)

Istem Fer


Code to convert STICS' output into netCDF format

Description

Convert STICS output into the NACP Intercomparison format (ALMA using netCDF)

Usage

model2netcdf.STICS(
  outdir,
  sitelat,
  sitelon,
  start_date,
  end_date,
  overwrite = FALSE
)

Arguments

outdir

Location of 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

overwrite

Whether or not to overwrite existing output files

Author(s)

Istem Fer


Write STICS configuration files

Description

Writes STICS configurations.

Usage

write.config.STICS(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 STICS for given run

Author(s)

Istem Fer