[GRASS-dev] Problem when loading GRASS 6 raster with large integer values into R via r.out.bin

Markus Neteler neteler at osgeo.org
Tue Sep 16 15:00:39 EDT 2008


On Tue, Sep 16, 2008 at 6:50 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> Hi
>
> I have a problem with importing raster maps of type CELL into R -
> larger values become "wrapped" around as r.out.bin saves the raster
> values as shortint values. Is there any possibility to change that
> behaviour, or at least convert the exported values automatically from
> integer to float?

My suggestion to Roger was to change to r.out.gdal:
 http://lists.osgeo.org/pipermail/grass-stats/2008-June/000799.html

Since the GRASS-R interface knows the GRASS version it could be
conditionalized upon GRASS >= 6.3.0 for r.out.gdal, r.out.bin otherwise.

Something has been implemented but it needs/ed to be activated
by setting parameters (at least in June, didn't check later).

Markus


More information about the grass-dev mailing list