getField_GUESS: Get a Field for LPJ-GUESS

View source: R/Format-GUESS.R

getField_GUESSR Documentation

Get a Field for LPJ-GUESS

Description

An internal function that reads data from an LPJ-GUESS run. It actually calls one of three other functions depending on the type of quantity specified.

Usage

getField_GUESS(
  source,
  quant,
  layers = NULL,
  target.STAInfo,
  file.name,
  verbose,
  ...
)

Arguments

source

A Source containing the meta-data about the LPJ-GUESS run

quant

A string the define what output file from the LPJ-GUESS run to open, for example "anpp" opens and read the "anpp.out" file

layers

A character string (or a vector of character strings) specifying which layer columns are to be read. NULL (default) means read all.

target.STAInfo

The spatial-temporal target domain

file.name

Character string holding the name of the file. This can be left blank, in which case the file name is just taken to be "<quant@id>.out" (also "<quant@id>.out.gz")

verbose

A logical, set to true to give progress/debug information

Value

A list containing firstly the data.table containing the data, and secondly the STA.info

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.