no ascii grid outputs when running maxent in R

416 views
Skip to first unread message

sonia hugh

unread,
Jun 1, 2012, 12:46:22 AM6/1/12
to Maxent
Hello everyone,

I'm running maxent using the dismo package in R. Currently, I get all
outputs except for .asc files. Is there an argument I have to
specify? I thought grid outputs were default?

My model code looks like this,

me.lucompare<-maxent(pstack,lu, factors = c("tasvegbvg_alb_crop"),
args = c("pictures","responsecurves",
"jackknife","outputgrids","replicates=10"),
path = c("Z:/projects/maxent/tas_ascii/ascii_cropped/
output_10_otc_noclay_compare_R"))

Any help would be greatly appreciated!

John B

unread,
Jun 1, 2012, 9:51:10 PM6/1/12
to max...@googlegroups.com
Hi Sonia, 

It looks like you've fit a model, but not projected it to the full spatial extent of your predictor data. i.e., the first step fits a model that describes the relationship between your species and your environmental predictors.

You can then project this fitted relationship to complete spatial data relating to your predictors to make predictions to those places/times.

To do this, try something like:

me.proj <- predict(me.lucompare , pstack, progress='text') 

See the examples in ?maxent for more details.

Hope that helps.
John

sonia hugh

unread,
Jun 6, 2012, 1:53:02 AM6/6/12
to Maxent
Hi John,

Thank you. I tried running your suggested script and it worked. My
next problem is that I would like the output grids to be a summary,
rather than a grid for each of the individual runs. I tried toggling
the flag outputgrids in both abbreviated and full form, but no luck.
My code is as follows:

r <- predict(me.lucompare, pstack, progress='window', args =
c("outputgrids=false"))

I've also tried the arguments "nooutgrids", "outputgrids=False", "-x
false" and "dontoutputgrids". Nothing has worked so far, do you have
any suggestions?

Charlotte Walters

unread,
Jun 21, 2012, 4:36:51 AM6/21/12
to max...@googlegroups.com
Hi Sonia, 
I am having the same problem... did you manage to figure this out?
Thanks
Charlotte

Niels

unread,
Aug 7, 2012, 9:32:04 AM8/7/12
to max...@googlegroups.com
Hi,

This did the trick for me

m <- maxent (d,v, args = c("noproduct", "nothreshold", "nooutputgrids", "noplots"), removeDuplicates = T)

Best,

Niels
Reply all
Reply to author
Forward
0 new messages