Package 'PEcAn.SIBCASA'

Title: PEcAn Package for Integration of the SiBCASA Model
Description: This module provides functions to link (SiBCASA) to PEcAn. It is a work in progress and is not yet fully functional.
Authors: Rob Kooper [cre], Tony Gardella [aut], Yasin Elshorabany [aut], Chris Black [aut], University of Illinois, NCSA [cph]
Maintainer: Rob Kooper <[email protected]>
License: BSD_3_clause + file LICENSE
Version: 0.0.1.9000
Built: 2024-11-20 21:33:15 UTC
Source: https://github.com/PecanProject/pecan

Help Index


Write SIBCASA met files

Description

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

Usage

met2model.SIBCASA(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

overwrite

logical: Replace output if it already exists?

Value

OK if everything was succesful.

Author(s)

Tony Gardella


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

Description

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

Usage

model2netcdf.SIBCASA(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)

Tony Gardella


Read restart template for SDA

Description

Read restart files from model.

Usage

read_restart.SIBCASA(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


Output variables for SIBCASA

Description

TODO: Provide a complete description here of the dataset, including its origin and purpose. The column descriptions below were written by someone looking at the file with no insight into its usage

Usage

sibcasa_output_vars

Format

data frame with 6 unnamed columns

1

? (t 0, t 3, etc)

2

short name

3

row number?

4

description

5

units

6

unused


Write restart template for SDA

Description

Write restart files for model

Usage

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

Arguments

outdir

Output directory

runid

Run ID

start.time

Time of current assimilation step

stop.time

Time of next assimilation step

settings

PEcAn settings object

new.state

Analysis state matrix returned by sda.enkf

Author(s)

Alexey Shiklomanov


Writes a SIBCASA config file.

Description

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

Usage

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

Arguments

defaults

list of defaults to process

trait.values

vector of values for a given trait

settings

list of settings from pecan settings file

run.id

id of run

Value

configuration file for SIBCASA for given run

Author(s)

Anthony Gardella, Rob Kooper