[GRASSLIST:228] Re: How can I reduce raster file sizes?
Glynn Clements
glynn at gclements.plus.com
Fri Mar 17 15:32:54 EST 2006
Michael Rensing wrote:
> I would like to be able to take a raster and reduce it's size for faster
> loading when I'm displaying the map for wide regions. I thought that by
> resampling I could reduce the resolution and hence the number of pixels,
> but the file I created is exactly the same size as the original. Can
> anyone confirm that resampling is the way to reduce the raster size?
Resampling will reduce the size, but it may not have much effect upon
performance.
Almost all raster commands automatically resample their input maps to
the resolution of the current region. In most cases, the resolution of
the current region is more important than the actual resolution of the
maps.
> If so, can you tell me how to do it?
g.region res=...
r.resample in=oldmap out=newmap
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list