merge SpatRasters by timelines to create a single timeseries
merge SpatRasters by timelines to create a single timeseries
Combine SpatRasters with partly overlapping time-stamps to create a single time series. If there is no overlap between the SpatRasters there is no point in using this function (use c instead).
Also note that time gaps are not filled. You can use fillTime to do that.
methods
## S4 method for signature 'SpatRasterDataset'mergeTime(x, fun=mean, filename="",...)
Arguments
x: SpatRasterDataset
fun: A function that reduces a vector to a single number, such as mean or min
filename: character. Output filename
...: list with named options for writing files as in writeRaster