Re: [R] writeRaster dataType changes

2014-09-25 Thread Pascal Oettli
Hi Emma, In writeRaster(), the argument is "datatype", not "dataType". Hope this helps, Pascal On Fri, Sep 26, 2014 at 3:08 AM, White, Emma wrote: > Hi, > > I am reading in some raster files and converting them to GeoTiff (using the > raster package), I want them to be 8 bit unsigned integer (

[R] writeRaster dataType changes

2014-09-25 Thread White, Emma
Hi, I am reading in some raster files and converting them to GeoTiff (using the raster package), I want them to be 8 bit unsigned integer (values in the case of this particular raster range from 0 to 55). However when writing the raster to GeoTiff R seems to assign it to dataType "FLT4S" desp