我有很多.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