Skip to content

Error loading raster files generated by R package terra #12

@JetteReeg

Description

@JetteReeg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions