RangeShifter / RScore

RangeShifter's core simulation code
GNU General Public License v3.0
0 stars 0 forks source link

Error loading raster files generated by R package terra #12

Closed JetteReeg closed 10 months ago

JetteReeg commented 10 months ago

As the support for the R package raster runs out, especially users of the R package RangeShiftR but also others will use terra to generate the raster input files. Unfortunately, terra::writeRaster() stores the cellsize as double. This leads to problems loading the raster files as within RangeShifter core files, cellsize is an integer. To avoid having the same issue in the batch mode, I would suggest to add a temporary variable which reads in a double, but will be assigned as integer to the cellsize/resol variable.

JetteReeg commented 10 months ago

closed with #13