|
1 | 1 | #' @title A function to process LPJ-GUESS outputs
|
2 | 2 | #' @description This function reads the ASCII outputs produced by LPJ-GUESS.
|
3 | 3 | #' It takes a list of output types (typeList) and finds them in the specified path.
|
4 |
| -#' The data is stored in a data class object: LPJData. If processing is TRUE, |
| 4 | +#' The data is stored in a data class object: \linkS4class{LPJData}. If processing is TRUE, |
5 | 5 | #' the data will be stored as zoo time series. Ohterwise, as data frames.
|
6 | 6 | #' @param x a character string indicating path to the output files
|
7 | 7 | #' @param typeList a character vector with the outputs to be analyzed.
|
|
11 | 11 | #' the processed outputs of the model (optional)
|
12 | 12 | #' @param processing a boolean indicating whether output files will be turned
|
13 | 13 | #' into time series (default is FALSE)
|
14 |
| -#' @return the processed data returned in a S4 Class: LPJData Class |
| 14 | +#' @return the processed data returned in a S4 Class: \linkS4class{LPJData} class |
| 15 | +#' @details Please note that this function is integrated in \code{\link{runLPJ}}, |
| 16 | +#' which alread returns the data as a \linkS4class{LPJData} object. |
15 | 17 | #' @seealso \linkS4class{LPJData}, \url{https://cran.r-project.org/web/packages/zoo/zoo.pdf}
|
16 | 18 | #' @author Ramiro Silveyra Gonzalez, Maurizio Bagnara, Florian Hartig
|
17 | 19 | #' @note Based on an older code of Joerg Steinkamp
|
18 | 20 | #' @details To convert the outputs into zoo time series is only supported when running the
|
19 |
| -#' model for one grid cell. For running LPJ-GUESS for several grid cells, please set |
| 21 | +#' model for one grid cell. When running LPJ-GUESS for several grid cells, please set |
20 | 22 | #' processing to FALSE.
|
21 | 23 | #' @export
|
22 |
| -#' @examples \dontrun{ |
23 |
| -#' LPJout <- getLPJData( typeList = c("aaet", "cflux","lai", "nflux"), |
24 |
| -#' "~/path/to/output/files", runInfo = list(parameter1 = 0.5, grid = 1)) |
25 |
| -#' } |
| 24 | +#' @example /inst/examples/getDataHelp.R |
26 | 25 | getLPJData <- function(x, typeList = NULL, runInfo=NULL, processing = FALSE){
|
27 | 26 | #, fun = NULL){
|
28 | 27 | # other options which could be included:
|
|
0 commit comments