sat | R Documentation |
functions to evaluate the spatial performance using satellite
sat(
mo,
ob,
rname,
table = NULL,
n = 6,
min = NA,
max = NA,
method = "bilinear",
eval_function = stat,
mask,
verbose = TRUE,
...
)
mo |
SpatRaster or raster with model |
ob |
SpatRaster or raster with observations |
rname |
passed to stat |
table |
data.frame to append the results |
n |
number of points from the boundary removed, default is 5 |
min |
minimum value cutoff |
max |
maximum value cutoff |
method |
passed to terra::resample |
eval_function |
evaluation function (default is stat) |
mask |
optional SpatVector to mask the results |
verbose |
set TRUE to display additional information |
... |
other arguments passed to stat |
a data.frame
If a YOU DIED error message appears, means you are removing all the valid values using the arguments min or max.
If cate() is used for eval_function, the argument threshold must be included (see example).
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"))
# generate the statistical indexes
sat(mo = model_o3,ob = omi_o3,rname = 'NO2_statistical')
# generate categorical evaluation using 3.0 as threshold
sat(mo = model_o3,ob = omi_o3,rname = 'NO2_categorical',
eval_function = cate, threshold = 3.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.