0

我正在使用 MaxEntVariableSelection 包并在尝试执行时反复收到以下错误,VariableSelection 即使在设置了MaxentVAriableSelectionVignette 中解释的所有内容之后也是如此。非常感谢您跳过此错误的任何帮助。

这些出现/背景 CSV 文件在“物种”列之前不包含 NA 或编号列,并且具有 SWD 格式。所有文件、栅格图层和 maxent.jar 都设置在同一工作目录中。栅格图层是独立的且具有.asc格式。

MaxentVariableSelection::VariableSelection(maxent="C:/Users/Piyali/Desktop/msc_paper/R_SDM/maxent.jar", 
                                       outdir="C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2", 
                                     gridfolder="/Users/Piyali/Desktop/msc_paper/R_SDM/30sclippedascii",
                                       occurrencelocations="C:/Users/Piyali/Desktop/msc_paper/R_SDM/xocc_all.csv",
                                       backgroundlocations="C:/Users/Piyali/Desktop/msc_paper/R_SDM/xbg_all.csv",
                                       additionalargs="nolinear noquadratic noproduct nothreshold noautofeature",
                                       contributionthreshold=5, 
                                       correlationthreshold=0.9,
                                       betamultiplier=seq(2,6,0.5))

Error in .local(.Object, ...) : 

In addition: Warning messages:

1: In system(paste("java -jar", maxent, "-o", outdir, "-j", gridfolder,  :
  running command 'java -jar C:/Users/Piyali/Desktop/msc_paper/R_SDM/maxent.jar -o     C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2 -j /Users/Piyali/Desktop/msc_paper/R_SDM/30sclippedascii/ -s C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2/xocc_all.csv_VariableSubset.csv -e C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2/xbg_all.csv_VariableSubset.csv plots=false writeplotdata=false visible=false autorun=true randomseed=true writebackgroundpredictions=false replicates=10 replicatetype=subsample randomtestpoints=50 redoifexists writemess=false writeclampgrid=false askoverwrite=false pictures=false outputgrids=false -b 2 nolinear noquadratic noproduct nothreshold noautofeature' had status 1


2: In system(paste("java -jar", maxent, "-o", outdir, "-j", gridfolder,  :
      running command 'java -jar C:/Users/Piyali/Desktop/msc_paper/R_SDM/maxent.jar -o C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2 -j /Users/Piyali/Desktop/msc_paper/R_SDM/30sclippedascii/ -s C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2/xocc_all.csv_VariableSubset.csv -e C:/Users/Piyali/Desktop/msc_paper/R_SDM/outputtest2/xbg_all.csv_VariableSubset.csv plots=false writeplotdata=false visible=false autorun=true randomseed=true writebackgroundpredictions=false redoifexists writemess=false writeclampgrid=false askoverwrite=false pictures=false outputformat=raw -b 2 nolinear noquadratic noproduct nothreshold noautofeature' had status 1


Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer",  : 
      Cannot create a RasterLayer object from this file. (file does not exist)
4

1 回答 1

0

如果以后有人发现此错误,请检查出现/背景 CSV 文件中变量的列名是否与您提供的栅格图层的名称完全相同。

于 2021-04-29T08:33:00.157 回答