change 4-bytes-per-cell to 1-byte-per-cell?
Angus Carr
apcarr at FLASH.LakeheadU.CA
Fri Feb 28 16:58:07 EST 1997
Try r.mapcalc "new = old"
That should work. You will have to play with the colors a bit, but it will
work.
Angus.
On Fri, 28 Feb 1997, Bill Hargrove wrote:
>
> If I have a 4-bytes-per-cell GRASS raster map that now only contains values
> less than 255, is there some GRASS tool that will change it to be only
> 1-byte-per-cell to save disk space?
>
> r.resample does not appear to do it, and I don't believe that r.compress or
> r.mapcalc will figure this out either.
>
> I'd appreciate it if someone had advice about this ...
>
> Bill H.
> --------------------------------------------------------------------------------
> ____ Oak Ridge National Laboratory
> / ) / / / / Computational Physics and Engineering Div.
> /--< o / / /--/ P.O. Box 2008, M.S. 6274
> /___/__<__/__/_ / / _ Oak Ridge, TN 37830-6274
> William W. Hargrove (423) 241-2748
> hnw at mtqgrass.esd.ornl.gov (423) 574-4634 (fax)
> --------------------------------------------------------------------------------
>
>
More information about the grass-user
mailing list