砖块,R中的netcdf文件的级别

时间:2019-03-18 12:59:56

标签: time raster levels ncdf4

我有许多.nc文件,它们的变量为"skt"。 我想要做的是将所有这些文件作为光栅块加载到R中,并且除了变量之外,还有时间。 我尝试用levels来做,但是没有成功。 我真的很感谢您的帮助。

list.files(pattern="*.nc")
list_all=list.files(pattern="*.nc")
skt_all<- brick(list_all,varname="skt",levels=4)


Warning messages:
1: In if (x == "" | x == ".") { :
  the condition has length > 1 and only the first element will be used
2: In if (!start %in% c("htt", "ftp")) { :
  the condition has length > 1 and only the first element will be used
3: In if (fileext %in% c(".GRD", ".GRI")) { :
  the condition has length > 1 and only the first element will be used
4: In if (!file.exists(x)) { :
  the condition has length > 1 and only the first element will be used
5: In if ((fileext %in% c(".HE5", ".NC", ".NCF", ".NC4", ".CDF", ".NCDF",  :
  the condition has length > 1 and only the first element will be used

0 个答案:

没有答案