ltsk
using cumulatively expanding time space thresholds. This function is useful when predictions are needed using data points at different spatiotemporal intervals.
For example, if predictions are needed at a given location for the past 30 days at an interval of 3 days.
Instead of using ltsk
10 times, cltsk
can compute all 10 values simultaneously.ltsk
using cumulatively expanding time space thresholds.cltsk(query, obs, th, nbins, xcoord = "x", ycoord = "y", tcoord = "t",
zcoord = "z", vth = NULL, vlen = NULL, llim = c(3, 3),
verbose = T, Large = 2000, future=T,cl = NULL)
query
and obs
query
and obs
query
and obs
obs
th
thresholds. The estimated variogram is used for ordinary kriging, but using data in expanding local neighborhoods for ordinary kriging.
For example, if predictions are needed at a given location for the past 30 days at an interval of 3 days,data within 3 days are used first, followed by 6 days and so on until data within 30 days. The same applies for distance thresholds.Kumar, N., et al. (2013). "Satellite-based PM concentrations and their application to COPD in Cleveland, OH." Journal of Exposure Science and Environmental Epidemiology 23(6): 637-646. Liang, D. and N. Kumar (2013). "Time-space Kriging to address the spatiotemporal misalignment in the large datasets." Atmospheric Environment 72: 60-69.
## load the data
data(ex)
data(epa_cl)
## apply log transformation
obs[,'pr_pm25'] = log(obs[,'pr_pm25'])
## run kriging
system.time(out <- cltsk(ex2.query[1:2,],obs,c(0.10,10),
zcoord='pr_pm25',nbins=c(4,5),verbose=FALSE))
table(out$flag)
Run the code above in your browser using DataLab