Package 'PEcAn.LDNDC'

Title: PEcAn package for integration of the LDNDC model
Description: This module provides functions to link the (LDNDC) to PEcAn.
Authors: Henri Kajasilta [aut, cre]
Maintainer: Henri Kajasilta <[email protected]>
License: BSD_3_clause + file LICENSE
Version: 1.0.0.9000
Built: 2025-03-11 02:35:28 UTC
Source: https://github.com/PecanProject/pecan

Help Index


Write LDNDC 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.LDNDC(
  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 results

end_date

end date of the results

overwrite

logical: replace output files if they already exist?

...

Other arguments

Value

invisible(results)

Author(s)

Henri Kajasilta


Code to convert LDNDC's output into netCDF format

Description

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

Usage

model2netcdf.LDNDC(
  outdir,
  sitelat,
  sitelon,
  start_date,
  end_date,
  delete.raw = 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

delete.raw

TRUE if raw model results will be deleted

Author(s)

Henri Kajasilta


Write LDNDC configuration files

Description

Writes a LDNDC config file.

Usage

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

Author(s)

Henri Kajasilta