geotopGOF: GEOtop Goodnes of fit

View source: R/geotop.gof.2.R

geotopGOFR Documentation

GEOtop Goodnes of fit

Description

GEOtop Goodnes of fit

Usage

geotopGOF(
  x = NULL,
  run.geotop = TRUE,
  target = NULL,
  uscale = NULL,
  when = NULL,
  gof.mes = "RMSE",
  np = 2,
  nosuccess.return = Inf,
  ...
)

Arguments

x

vector with parameters to calibrate. See param in geotopExec.

run.geotop

logical value. Default is TRUE. It it is TRUE GEOtop is runned though geotopExec.

target

variables used for comparasion. The name of the variable must be in accordance with observation names returned by geotopLookUpTable.

uscale

unit scale value for each target variable. (...)

when

vector of time instants (class POSIXct. It is passed as when to geotopLookUpTable. If it is NULL all observation/simulated time duration is considered.

gof.mes

measure (index) of godness of fit. The measure must be one of the row names of gof

np

exponent for te p-norm used. It must be an integer greater or equal to 1. It can be 1 (Manhattan), 2 (Euclidean) or Inf (Component of the Maximum absoulte value). Default is 2.

nosuccess.return

value thet function returns in case of non-0 (e.g. 1) exit of GEOtop simulation. Default is Inf.

...

further arguments (see geotopExec and gof.

See Also

geotopExec,gof

Examples


wpath <- system.file('geotop-simulation/B2site',package="geotopOptim2")
bin <-   "/home/ecor/local/geotop/GEOtop/bin/geotop-2.0.0"
runpath <- tempdir() ##"/home/ecor/temp/geotopOptim_tests"

var <- 'soil_moisture_content_50'

param <- c(N=1.4,Alpha=0.0021,ThetaRes=0.05) 
ssout <- geotopGOF(x=param,run.geotop=TRUE,bin=bin,
			simpath=wpath,runpath=runpath,clean=TRUE,data.frame=TRUE,
			level=1,intern=TRUE,temporary.runpath=TRUE)


#

ecor/geotopOptim2 documentation built on April 19, 2023, 4:35 a.m.