很抱歉,如果这很容易解决,我是R
的新手。我正在尝试下载 NDVI数据,但无法找出导致错误的参数:
“!res [[1]]中的错误:参数类型无效”
省略包含名称的路径。
dates <- as.POSIXct( as.Date(c("01/05/2007","31/07/2007"),format = "%d/%m/%Y") )
dates2 <- transDate(dates[1],dates[2]) # Transform input dates
path <- #path to working folder here
outpath <- #path to the same working folder
folder <- "2007-2019" #folder within working folder
## identify which MODIS tiles you want to download
tryit <- getTile(tileH = 10:11, tileV = 04)
product<-"MYD13Q1"
getCollection(product="MYD13Q1", collection = "006", newest = TRUE,forceCheck = T)
h <- 10:11
v <- 04
## download data, SDSstring identifies NDVI layer
MODISoptions(localArcPath = path , outDirPath = outpath ) ##set paths
runGdal(product=product,collection = "006", begin=dates2$beginDOY,end = dates2$endDOY,
extent=tryit, SDSstring = "100000000000",job=folder,tileH = h, tileV = v)
一切顺利进行到最后一行。这是输出:
########################
outProj = asIn
pixelSize = asIn
resamplingType = near
Error in !res[[1]] : invalid argument type
非常感谢您的帮助!