Skip to content
Prev 20802 / 29559 Next

decimals in NA value using raster::writeRaster with .ascii format

Zack,

You are using:     dataType="INT2U"

but it should be:     datatype="INT2U"  # (or any other INT data type)

That fixes it. If the datatype is FLT* (the default), the first value
gets decimals to assure that GDAL and others treat the values as
floats, not integers.

Robert
On Thu, Apr 10, 2014 at 3:36 PM, Jonathan Greenberg <jgrn at illinois.edu> wrote: