Description Usage Arguments Value Examples
Calculates performance matrix using observed data and simulated .DWS files for a selected time averaging window.
1 2 |
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. |
A data frame containing model performance values.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.