wallace freezes when using visialisation of Maxent prediction maps without using threshold

154 views
Skip to first unread message

M Duchoslav

unread,
Oct 26, 2023, 3:46:27 AM10/26/23
to Wallace Ecological Modeling App
Hello,
Thank you for all your efforts to improve Wallace.
However, I keep having problems with the visualisation part.
For example, using high resolution layers (1 km) and forecast visualisation without using threshohd, which should lead to coloured output map, or transfer to larger extent, Wallace freezes with following info in R...

Warning: Error in addRasterImage_RasterLayer: Raster image too large; 12027652 bytes is greater than maximum 4194304 bytes
  52: stop
  51: addRasterImage_RasterLayer
  50: addRasterImage
  49: %>%
  48: xfer_area_module_map [C:\Users\Xxx\AppData\Local\R\win-library\4.2\wallace\shiny\modules\xfer_area.R#388]
  46: observe [C:\Users\ Xxx \AppData\Local\R\win-library\4.2\wallace\shiny/server.R#146]
  45: <observer>
   2: shiny::runApp
   1: run_wallace
Warning in raster::getData(name = "worldclim", var = "bio", res = bcRes,  :
  getData will be removed in a future version of raster
. Please use the geodata package instead

There is clearly a problem with memory usage. When using BW output or e.g. worldclim with lower resolution or smaller areas the problem is not visible.
I have 32 GB of memory and when I monitor it, there is no indication that it is full.
What is wrong? Using Maxent always works without these problems....

Thank you for solving the problem
Martin

Wallace Ecological Modeling App

unread,
Oct 31, 2023, 2:40:51 PM10/31/23
to Wallace Ecological Modeling App
Hi Martin,
Thanks for writing in. You are correct in that this is an issue with memory. The map seems to be having an issue loading a raster of this resolution. You could always download the Rmd file for your session and try to run it that way, or download the raster and use an alternate GIS program for visualization.
We are currently in the long process of converting our usage of the raster package over to terra instead. Hopefully after this, this will no longer be an issue.

Reply all
Reply to author
Forward
0 new messages