change 4-bytes-per-cell to 1-byte-per-cell?

Bill Hargrove hnw at mtqgrass.ESD.ORNL.GOV
Fri Feb 28 13:35:59 EST 1997


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