raster integer *3 ?

Agustin Lobo alobo at ija.csic.es
Tue Dec 14 12:26:46 EST 1999


Thanks Bill and Malcolm.

Bill said

"Probably the easiest way is to use mapcalc to reassign one of the
category values to a value that requires 4 bytes for storage"

ok, this is equivalent to use float(raster).

" Make sure you have an uncompressed
raster - mapcalc and other programs write compressed. (use r.compress)"

Yes, I'm aware of this. Actually, I've found that sometimes
compressed files are larger than uncompressed ones!


Malcolm said:

"I always considered it a plus that GRASS used only the minimum
number of bytes necessary (1, 2, 3, or 4) to store its raster data"

Yes, I agree, this is a good feature, as compressing by default. We just
have to be aware of both.

Agus


Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
http://pangea.ija.csic.es/alobo




More information about the grass-user mailing list