interp | R Documentation |
function to project and interpolate rast
interp(x, y, method = "bilinear", mask, verbose = FALSE)
x |
rast to be interpolated |
y |
target rast of the interpolation |
method |
passed to terra::resample |
mask |
optional SpatVector to mask the results |
verbose |
display additional information (not used) |
SpatRaster (terra package)
model_o3 <- terra::rast(paste0(system.file("extdata",package="eva3dm"),
"/camx_no2.Rds"))
omi_o3 <- terra::rast(paste0(system.file("extdata",package="eva3dm"),
"/omi_no2.Rds"))
# interpolate omi O3 column to model grid
omi_o3c_interp_model <- interp(omi_o3,model_o3)
# interpolate model o3 column to omi grid
model_o3c_interp_omi <- interp(omi_o3,model_o3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.