getField_aDGVM2: Get a Field for aDGVM2

View source: R/Format-aDGVM2.R

getField_aDGVM2R Documentation

Get a Field for aDGVM2

Description

An internal function that reads data from an aDGVM2 run. It actually calls one of two other functions depending on the type of quantity specified.

Usage

getField_aDGVM2(
  source,
  quant,
  layers = NULL,
  target.STAInfo,
  file.name,
  verbose,
  adgvm2.scheme,
  adgvm2.daily
)

Arguments

source

A Source containing the meta-data about the aDGVM2 run

quant

A Quantity object to define what quantity from the aDGVM2 run to extract

layers

Ignored for aDGVM

target.STAInfo

STAInfo object specifying the spatial-temporal-annual extent required. Note that at this stage only the years are selected/

file.name

Character string holding the name of the file. This can be left blank, in which case the file name is automatically generated

verbose

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

adgvm2.scheme

A number that defines if pop-files (=1) or trait-files (=2) are used.

adgvm2.daily

A logical, set to true to read daily data (only for adgvm2.scheme=1 and if daily data are provided in pop file)

Value

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

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de

See Also

getQuantity_aDGVM2_Scheme1, getQuantity_aDGVM2_Scheme2


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