Description Usage Arguments Examples
View source: R/cdtMergingLOOCV.R
This function perform a Leave-One-Out Cross-Validation.
1 2 3 4 5 6 7 8 9 10 | cdtMergingLOOCV(time.step = "dekadal", start.date = c(1981, 1, 1),
end.date = c(2018, 12, 3), station = list(file = NULL, sep = ",",
miss = "-99"), netcdf = list(dir = NULL, varid = NA, order.lon = 1,
order.lat = 2, format = "rfe_%s%s%s.nc"), merging.method = "SBA",
interp.method = "idw", spheric = FALSE, maxdist = 2.5,
pass.ratio = c(1, 0.5, 0.2), pass.nmin = c(5, 4, 3),
pass.nmax = c(15, 10, 7), neg.value = FALSE, output.file = NULL,
use.RnoR = FALSE, pars.RnoR = list(wet.day = 1, smooth = FALSE),
vgm.model = c("Exp", "Gau", "Sph", "Pen"), parallel = list(dopar =
TRUE, detect.cores = TRUE, nb.cores = 2))
|
time.step |
Time step of the data. Should be "daily", "pentad", "dekadal" or "monthly". |
start.date |
A vector of the start date to merge.
|
end.date |
A vector of the start date to merge. Same format as |
station |
A list containing the station information in the form
|
netcdf |
A list containing the netcdf data information in the form
|
merging.method |
Merging method to be used. Valid options: "CSc", "BSc", "SBA" or "RK".
|
interp.method |
Interpolation method to be used for "SBA" and "RK". Valid options: "idw", "shepard", "spheremap" or "kriging".
|
spheric |
If |
maxdist |
Maximum radius of influence in decimal degree. |
pass.ratio |
A vector giving the fraction of |
pass.nmin |
A vector giving the minimum number of stations to be used to interpolate a grid point for each pass. Must be the same length as |
pass.nmax |
A vector giving the maximum number of stations to be used to interpolate a grid point for each pass. Must be the same length as |
neg.value |
If |
output.file |
Full path name to save the result. |
use.RnoR |
If |
pars.RnoR |
A list of parameters to be used if
|
vgm.model |
A vector of variogram model to be used if |
parallel |
A list of parameters for parallel processing.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
cdtMergingLOOCV(
time.step = "dekadal",
start.date = c(2018, 1, 1),
end.date = c(2018, 12, 3),
station = list(file = "~/DONNEES/STN_DATA/CDT_RR_dekad_1981-2018_CLM.csv",
sep = ",", miss = "-99"),
netcdf = list(dir = "~/DONNEES/GRIDDED_DATA/tamsat_v3/dekadal", varid = "rfe",
order.lon = 1, order.lat = 2, format = "rfe_%s%s%s.nc"),
merging.method = "SBA",
interp.method = "idw",
spheric = TRUE,
maxdist = 1.0,
pass.ratio = c(1, 0.75, 0.5),
pass.nmin = c(5, 4, 3),
pass.nmax = c(15, 10, 7),
neg.value = FALSE,
output.file = "~/DONNEES/OUT_Merging/LOOCV_SBA-idw.csv",
use.RnoR = TRUE,
pars.RnoR = list(wet.day = 1.0, smooth = FALSE),
vgm.model = c("Exp", "Gau", "Sph", "Pen")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.