У меня есть много .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