Мне нужно зарегистрировать сотни файлов netCDF, но когда я использовал команду CDO в R, всегда возникала такая проблема:
cdo remapnn (Abort): Too few streams specified! Operator needs 1 input and 1 output streams.
код выглядит следующим образом:
files <- list.files(path = common_path,pattern = ".nc")
cdo_path = '/opt/local/bin/cdo'
new_data_folder = "test_r"
raw_data_folder = "data"
for (i_file in files) {
raw_file <- paste(raw_data_folder,i_file,sep = '/')
new_file <- paste(new_data_folder,i_file,sep = '/')
system(paste(cdo_path,' remapnn,r720x360 ',raw_file,new_file,sep=""))
}
raw_file
иnew_file
?system(paste(cdo_path, ' remapnn,r720x360 ', raw_file, " ", new_file, sep = ""))
- person Tung   schedule 27.08.2018print(paste(cdo_path, ' remapnn,r720x360 ', raw_file, " ", new_file, sep = ""))
- person Tung   schedule 27.08.2018system(paste(cdo_path,' remapnn,r720x360 ',raw_file,' ',new_file,sep = ""))
- person Hong   schedule 29.08.2018