Package 'PEcAn.CABLE'

Title: PEcAn package for integration of the CABLE model
Description: This module provides functions to link the (CABLE) to PEcAn.
Authors: Kaitlin Ragosta
Maintainer: Tony Gardella <[email protected]>
License: BSD_3_clause + file LICENSE
Version: 1.7.3.9000
Built: 2024-12-17 17:26:35 UTC
Source: https://github.com/PecanProject/pecan

Help Index


Write CABLE 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.CABLE(in.path, in.prefix, outfolder, 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.

Value

OK if everything was succesful.

Author(s)

Rob Kooper


Code to convert CABLE's output into netCDF format

Description

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

Usage

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

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

Author(s)

Rob Kooper


Read restart template for SDA

Description

Read restart files from model.

Usage

read_restart.CABLE(outdir, runid, stop.time, settings, var.names, params)

Arguments

outdir

Output directory

runid

Run ID

stop.time

Year that is being read

settings

PEcAn settings object

var.names

Variable names to be extracted

params

Any parameters required for state calculations

Value

Forecast numeric matrix

Author(s)

Alexey Shiklomanov


Write restart template for SDA

Description

Write restart files for model

Usage

write_restart.CABLE(outdir, runid, start.time, stop.time, settings, new.state)

Arguments

start.time

Time of current assimilation step

stop.time

Time of next assimilation step

new.state

Analysis state matrix returned by sda.enkf

Author(s)

Alexey Shiklomanov


Write CABLE configuration files

Description

Writes a CABLE config file.

Usage

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

Arguments

defaults

list of defaults to process

settings

list of settings from pecan settings file

run.id

id of run

trait.samples

vector of samples for a given trait

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 CABLE for given run

Author(s)

Rob Kooper, Kaitlin Ragosta