Description Usage Arguments Examples
This function blends station data with a gridded data. The blending methods are "Regression Kriging", "Simple Bias Adjustment" (additive bias), "Cressman Scheme" and "Barnes Scheme". The radius of influence for the interpolation method varies for each grid point.
1 2 3 4 5 6 7 8 9 10 11 12 | cdtMerging(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 = list(dir =
NULL, format = "rr_mrg_%s%s%s.nc", name = "precip", units = "mm",
longname = NA, prec = "short"), 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 |
A list of the output information.
|
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 25 26 | ## Not run:
cdtMerging(
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 = list(dir = "~/DONNEES/OUT_Merging", format = "rr_mrg_%s%s%s.nc",
name = "precip", units = "mm",
longname = "Merged Station-Satellite Rainfall", prec = "short"),
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.