[R-sig-Geo] Problems converting rasters from float to integer.
nevil@@mo@ @ending from gm@il@com
Fri Aug 24 08:44:44 CEST 2018
I have a large number of rasters ( tiffs) that contain whole number values
between 0 and 100, and NA values. or 0,1,and NA
they are currently in Float format, I am trying to rewrite them as integer
rasters, firstly to save space, and secondly so that I can later read the
values stack of all the rasters into an integer array. using getValues().
To do this I am setting the dataType to INT2U in writeRaster, however when
I read the save file back into R the format is not INT2U but FLT8S
the result I get:
Can you suggest how I ensure the values are stored as integer?
[[alternative HTML version deleted]]
More information about the R-sig-Geo