Hi, I am having this issue when trying to downscale:
res_gam <- dissever(
coarse = output, # stack of fine resolution covariates
fine = fine, # coarse resolution raster
method = "gamSpline", # regression method used for disseveration
p = p_train, # proportion of pixels sampled for training regression model
min_iter = min_iter, # minimum iterations
max_iter = max_iter, # maximum iterations
verbose = TRUE
)
Selecting best model parameters
Error in check_dims(x = x, y = y) : nrow(x) > 1 is not TRUE.
Inputs are the following:
output
class : RasterLayer
dimensions : 12, 12, 144 (nrow, ncol, ncell)
resolution : 1.666667, 1.666667 (x, y)
extent : 12.2, 32.2, -14.61667, 5.383333 (xmin, xmax, ymin, ymax)
crs : +proj=longlat +datum=WGS84 +no_defs
source : memory
names : index_6
values : 14295.9, 66365257 (min, max)
fine
class : RasterStack
dimensions : 2260, 2293, 5182180, 6 (nrow, ncol, ncell, nlayers)
resolution : 0.008333333, 0.008333333 (x, y)
extent : 12.2, 31.30833, -13.45, 5.383333 (xmin, xmax, ymin, ymax)
crs : +proj=longlat +datum=WGS84 +no_defs
names : GHS_POP_E//_30ss_V1_0, layer.1, built, layer.2, travel, layer.3
min values : 0.001458411, 0.000000000, ?, 0.046248772, 0.000000000, 0.000000000
max values : 193353.9687, 4.2720, ?, 543.8151, 2964.0000, 72540.0328