dws2perf: dws2perf

Description Usage Arguments Value Examples

Description

Calculates performance matrix using observed data and simulated .DWS files for a selected time averaging window.

Usage

1
2
dws2perf(observedFilePath, dwsFolderPath, startDate, endDate, captionDwsVar,
  captionObsVar, TW = "day", perfMatrixFileName = NA)

Arguments

observedFilePath

File path containing observed data.

dwsFolderPath

Folder path containing .DWS output files.

startDate

Start date with format YYYY-MM-DD (e.g. "2004-05-18").

endDate

End date with format YYYY-MM-DD (e.g. "2004-05-18").

captionDwsVar

Variable caption as it appears in the .DWS output file.

captionObsVar

variable caption as it appears in the observed file.

TW

Time averaging window could be: "day" , or "week", or "month" or "year" or any multiple of them, e.g. "3 month".

perfMatrixFileName

An arbitrary file name for saving performance matrix. Will not save if not assigned a value.

Value

A data frame containing model performance values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
# Creating a copy of tutorial folder:
    getExampleFolder()
# Creating a list for setting inputs:
    globalInput <- inputGen()
# Setting parameter bounds:
    globalInput$apexPARM$Root_growth_soil[1] = 0.15
    globalInput$apexPARM$Root_growth_soil[2] = 0.2
    globalInput$apexPARM$Soil_evap_plant_cover[1] = 0
    globalInput$apexPARM$Soil_evap_plant_cover[2] = 0.5
# Performing Monte Carlo simulation:
    input4SA <- APEXSENSUN::mc4APEX(globalInput)
# Calculating performance matrix:
    PerfMat <- dws2perf(observedFilePath ="Example/Observed_Files/observed.txt",
                    dwsFolderPath = "Example/Calculated_Outputs/DWS",
                    startDate="2002-01-01",
                    endDate="2003-01-01",
                    captionDwsVar="ET",captionObsVar="ET",TW="week")

## End(Not run)

Rapex2017/apexsensun documentation built on May 4, 2019, 6:39 p.m.