band1<-raster(B1)
Error in if (x == "" | x == ".") { : argument is of length zero
That suggests that B1 is an empty string
library(raster)
B1 <- character()
B1
# character(0)
raster(B1)
# Error in if (x == "" | x == ".") { : argument is of length zero
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.