fix runMuso bug and setupMuso name bug.

This commit is contained in:
Roland Hollós 2019-01-23 18:33:49 +01:00
parent 9d5b050bd8
commit f79d471725
4 changed files with 11 additions and 14 deletions

View File

@ -1,13 +1,13 @@
Package: RBBGCMuso Package: RBBGCMuso
Title: An R package for BiomeBGC-MuSo ecosystem modelling Title: An R package for BiomeBGC-MuSo ecosystem modelling
Version: 0.6.1-1 Version: 0.6.1.2
Authors@R: person("Roland", "Hollo's", , "hollorol@gmail.com", role = c("aut", "cre")) Authors@R: person("Roland", "Hollo's", , "hollorol@gmail.com", role = c("aut", "cre"))
Description: What the package does (one paragraph). Description: What the package does (one paragraph).
Depends: R (>= 3.3.2) Depends: R (>= 3.3.2)
License: GPL-2 License: GPL-2
LazyData: true LazyData: true
NeedsCompilation: no NeedsCompilation: no
Packaged: 2017-07-19 14:00:04 UTC; hollorol Packaged: 2017-07-19 14:00:04 UTCs; hollorol
Author: Roland Hollo's [aut, cre] Author: Roland Hollo's [aut, cre]
Imports: Imports:
grDevices, grDevices,

View File

@ -31,12 +31,8 @@ runMuso <- function(settings=NULL, calibrationPar=NULL,
leapYear=FALSE,keepBinary=FALSE, leapYear=FALSE,keepBinary=FALSE,
binaryPlace="./", fileToChange="epc", binaryPlace="./", fileToChange="epc",
skipSpinup = TRUE, modifyOriginal =FALSE, prettyOut = FALSE){ skipSpinup = TRUE, modifyOriginal =FALSE, prettyOut = FALSE){
calibMuso(settings=NULL, calibrationPar=NULL, calibMuso(settings, calibrationPar, parameters, outVars, timee,
parameters=NULL, outVars = NULL, timee="d", debugging, logfilename, keepEpc, export, silent, aggressive,
debugging=FALSE, logfilename=NULL, leapYear,keepBinary, binaryPlace, fileToChange,
keepEpc=FALSE, export=FALSE, skipSpinup, modifyOriginal, prettyOut)
silent=FALSE, aggressive=FALSE,
leapYear=FALSE,keepBinary=FALSE,
binaryPlace="./", fileToChange="epc",
skipSpinup = TRUE, modifyOriginal =FALSE, prettyOut = FALSE)
} }

View File

@ -2,7 +2,7 @@
#' #'
#' This funcion is fundamental for the Biome-BGCMuSo model related functions like runMuso, spinupMuso, normalMuso, rungetMuso, as it sets the model's environment. The function reads the INI files from a given directory, analyzes them with error checking, and creates a data structure in R that contains the complete information content for the simulation. #' This funcion is fundamental for the Biome-BGCMuSo model related functions like runMuso, spinupMuso, normalMuso, rungetMuso, as it sets the model's environment. The function reads the INI files from a given directory, analyzes them with error checking, and creates a data structure in R that contains the complete information content for the simulation.
#' #'
#' @author Roland Hollós #' @author Roland Hollos
#' @param parallel Set this variable to TRUE if you would like to implement parallel execution of the model #' @param parallel Set this variable to TRUE if you would like to implement parallel execution of the model
#' @param executable This parameter stores the location (directory) of the modell-executable file. In normal usage, you don't have to set this parameter, because a RBBGCMuso package contains allways the latest modell executable. In spite of this, if you would like to use this package for modell development or just want to use different models (for example for comparison), you will find it useful #' @param executable This parameter stores the location (directory) of the modell-executable file. In normal usage, you don't have to set this parameter, because a RBBGCMuso package contains allways the latest modell executable. In spite of this, if you would like to use this package for modell development or just want to use different models (for example for comparison), you will find it useful
#' @param calibrationPar You may want to change some parameters in your epc file, before you run the modell. You have to select the appropirate modell parameters. You can refence to these with the number of the line in the epc file where the variables are. It indexes from one. You should use a vector for this, like: c(1,5,8) #' @param calibrationPar You may want to change some parameters in your epc file, before you run the modell. You have to select the appropirate modell parameters. You can refence to these with the number of the line in the epc file where the variables are. It indexes from one. You should use a vector for this, like: c(1,5,8)
@ -33,6 +33,7 @@
#' @return The output is a the modell setting list wich contains the following elements: #' @return The output is a the modell setting list wich contains the following elements:
#' executable, calibrationPar, outputLoc, outputName, inputLoc, iniInput, metInput, epcInput,thinInput,CO2Input, mowInput, grazInput, harvInput, plougInput, fertInput,rrInput, nitInput, inputFiles, numData, startyear, numYears, outputVars #' executable, calibrationPar, outputLoc, outputName, inputLoc, iniInput, metInput, epcInput,thinInput,CO2Input, mowInput, grazInput, harvInput, plougInput, fertInput,rrInput, nitInput, inputFiles, numData, startyear, numYears, outputVars
#' @export #' @export
setupMuso <- function(executable=NULL, setupMuso <- function(executable=NULL,
parallel = F, parallel = F,
calibrationPar =c(1), calibrationPar =c(1),

View File

@ -14,9 +14,9 @@ fertInput=NULL, irrInput=NULL,
nitInput=NULL, iniInput=NULL, epcInput=NULL) nitInput=NULL, iniInput=NULL, epcInput=NULL)
} }
\arguments{ \arguments{
\item{executable}{This parameter stores the place of the modell-executable file. In normal usage, you don't have to be set this, because a RBBgcmuso package contains allways the latest modell executable. In spite of this, if you would like to use this package for modell development or just want to use different models (for example for comparison), you will find it useful} \item{executable}{This parameter stores the location (directory) of the modell-executable file. In normal usage, you don't have to set this parameter, because a RBBGCMuso package contains allways the latest modell executable. In spite of this, if you would like to use this package for modell development or just want to use different models (for example for comparison), you will find it useful}
\item{parallel}{Do you want to run multiple modell paralelly, if yes, set this variable to TRUE} \item{parallel}{Set this variable to TRUE if you would like to implement parallel execution of the model}
\item{calibrationPar}{You may want to change some parameters in your epc file, before you run the modell. You have to select the appropirate modell parameters. You can refence to these with the number of the line in the epc file where the variables are. It indexes from one. You should use a vector for this, like: c(1,5,8)} \item{calibrationPar}{You may want to change some parameters in your epc file, before you run the modell. You have to select the appropirate modell parameters. You can refence to these with the number of the line in the epc file where the variables are. It indexes from one. You should use a vector for this, like: c(1,5,8)}
@ -57,7 +57,7 @@ The output is a the modell setting list wich contains the following elements:
executable, calibrationPar, outputLoc, outputName, inputLoc, iniInput, metInput, epcInput,thinInput,CO2Input, mowInput, grazInput, harvInput, plougInput, fertInput,rrInput, nitInput, inputFiles, numData, startyear, numYears, outputVars executable, calibrationPar, outputLoc, outputName, inputLoc, iniInput, metInput, epcInput,thinInput,CO2Input, mowInput, grazInput, harvInput, plougInput, fertInput,rrInput, nitInput, inputFiles, numData, startyear, numYears, outputVars
} }
\description{ \description{
This funcion is fundamental for the BiomBGC-MuSo modell related functions like spinupMuso, normalMuso, rungetMuso, because it sets the modells environment. This funcion is fundamental for the Biome-BGCMuSo model related functions like runMuso, spinupMuso, normalMuso, rungetMuso, as it sets the model's environment. The function reads the INI files from a given directory, analyzes them with error checking, and creates a data structure in R that contains the complete information content for the simulation.
} }
\author{ \author{
Roland Hollos Roland Hollos