Description Usage Arguments Value Examples
Generates time series statistics for accepted simulations using selected probabilities.
1 2 | idx2statTimeseries(dwsFolderPath, startDate, endDate, captionDwsVar,
TW = "day", acceptedIndices = "all", probs = c(0.025, 0.5, 0.975))
|
dwsFolderPath |
Folder path for .DWS output folder. |
startDate |
Start date with format YYYY-MM-DD (e.g. "2002-01-01"). |
endDate |
End date with format YYYY-MM-DD (e.g. "2003-01-01"). |
captionDwsVar |
Variable caption as it appears in the .DWS output file. |
TW |
Time averaging window could be: "day" , or "week", or "month" or "year" or any multiple of them, e.g. "3 month". |
acceptedIndices |
"all" for all files or An integer vector containing accepted simulation numbers. |
probs |
Vector of probabilities for which quantiles are calculated at each time step, e.g. c(0.025,0.5,0.975). |
A data frame containing mean and quantile time series for selected probabilities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## 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 stat time series:
statTimeSeries <- idx2statTimeseries(dwsFolderPath = "Example/Calculated_Outputs/DWS/",
startDate = "2002-01-01",
endDate="2003-01-01",
captionDwsVar="ET", TW = "week",
acceptedIndices = "all",
probs = c(0.025,0.5,0.85,0.975))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.