[R-sig-Geo] WriteRaster as Float

Tom Philippi tephilippi at gmail.com
Tue Nov 11 05:32:32 CET 2014


Zebrat--
Without example code it is difficult to guess what you tried, and what you
desire.  By "float" do you mean FLT4S 4-byte values?  If so, try
datatype='FLT4S' in your call to writeRaster(), which should be the same as
'Float32' in gdal.  If you mean something else, I guessed wrong, so you
might specify a bit more about what you have, want, and have tried.

Tom 2

On Mon, Nov 10, 2014 at 4:38 AM, diamant zebrat <diamant.zebrat at gmail.com>
wrote:

> Hello,
> I am working with R processing Meteosat imagery, which mean a lot of images
> every day, and thus a lot of available storage space
> It looks like the write raster function of the raster package only allows
> to write a Geotiff as integer or as double. I only need float precision, so
> I don't need a double as the resulting file gets too big. Is there any way
> to store a geotiff with float precision?
> Thank you
> Zebrat
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list