[GRASS-dev] r.in.gdal: add scale and shift parameters?

Glynn Clements glynn at gclements.plus.com
Fri May 20 22:45:55 PDT 2016

Markus Neteler wrote:

> sometimes it is convenient to scale/shift input maps on the fly during
> the import in order to avoid an extra step with r.mapcalc (think: tons
> of scaled Landsat data etc).

Perhaps a better option (albeit one which requires some amount of
design, rathern than just coding) would be to have this performed
during read, i.e. similarly to how reclass maps are handled.

This would allow it to be used with r.external maps without needing to
make a copy (which largely defeats the point of using r.external).

It would also allow most maps to be stored as CELL, with better
precision than FCELL (32 bits rather than 24) and less space than
DCELL. It's quite rare for physical measurements to be sufficiently
accurate that 32 bits isn't enough.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list