ENMevaluate error

66 views
Skip to first unread message

sonia smeraldo

unread,
Feb 10, 2018, 2:06:29 PM2/10/18
to Maxent
Hi,

I'm using the ENMevaluate function with the following script:


enmeval_results<-ENMevaluate(data, vars_tra, bg.coords = pseudoabsences, occ.grp = 2, 
            bg.grp = 2, RMvalues = seq(0.5, 4, 0.5), 
            fc = c("L", "LQ", "H", "LQH", "LQHP", "LQHPT"),
            categoricals = NULL, n.bg = 20000, method = c("randomkfold", "checkerboard1"), 
            overlap = FALSE, aggregation.factor = c(2, 2), 
            kfolds = 2, bin.output = TRUE, clamp = TRUE,
            rasterPreds = TRUE, parallel = FALSE, numCores = NULL, 
            progbar = TRUE, updateProgress = FALSE)

I managed to make the script works one time. After an upgrade of my computer I always have this error:

java.io.FileNotFoundException: C:\Users\Sonia\AppData\Local\Temp\RtmpsVNQCz\file2de0fb5707d\plots\species_roc.png (Access denied)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source)
at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source)
at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
at javax.imageio.ImageIO.write(Unknown Source)
at density.Runner.writePlots(Runner.java:2449)
at density.Runner.writeCumulativeIndex(Runner.java:1947)
at density.Runner.start(Runner.java:493)
at mebridge.fit(mebridge.java:27)
Error in rJava::.jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o",  : 
  java.lang.NullPointerException


I can't understand if might be a problem of memory space or something else. On the other hand, if I try to run the ENMevaluate example it works. 
Do you have any suggestion about which is the problem and how to solve it?
Thanks in advance.
Regards

Sonia

Jamie M. Kass

unread,
Feb 10, 2018, 2:11:25 PM2/10/18
to Maxent
Sonia,

A couple of potential issues:

1) You should only specify a single partition technique, not two.

2) The parameters occ.grp and bg.grp are only used for the “user” partition option, and they should be vectors that list the partition value for each point.

Not sure why the script worked before.

Jamie Kass
Phd Candidate
City College of NY
Reply all
Reply to author
Forward
0 new messages