mlr-org / mlr3spatial

Spatial objects within the mlr3 ecosystem
https://mlr3spatial.mlr-org.com
42 stars 6 forks source link

predict_spatial not accept SpatRaster stacs #93

Open MarkoKazimirovic opened 4 months ago

MarkoKazimirovic commented 4 months ago

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.