mlr3spatial icon indicating copy to clipboard operation
mlr3spatial copied to clipboard

predict_spatial not accept SpatRaster stacs

Open MarkoKazimirovic opened this issue 1 year ago • 0 comments
trafficstars

When supplying a SpatRaster stack (very large one dim = 98939, 173775, 2), to predict_spatial(), it throws back an error: [names<-] incorrect number of names If you generate provisory stack via generate_stack(), it works just fine and also if you stack two radnom generated rasters. Appart from size, the only difference is having one source file, while stacking two selected files have two source links. I have tried to track down the error, and went all the way down to Task class, where it seems that as_data_backend returns an error.

MarkoKazimirovic avatar Jun 21 '24 21:06 MarkoKazimirovic