[GRASS-dev] r.cpt2grass - add option to multiply values

Paulo van Breugel p.vanbreugel at gmail.com
Tue Dec 1 07:17:05 PST 2015


Hi Anna

Just an idea I got when using r.ctp2grass for some climate data. Climate 
data layers are often multiplied by a factor 10 so they can be 
distributed as integer rasters while still maintaining a desired degree 
of precision. This made me think that it would be nice if I could create 
a color rules file using r.ctp2grass with the option to multiply the 
default values as defined in the ctp file. Perhaps something along the 
lines of attached patch file for r.ctp2grass (for illustrative purposes, 
I am sure things can be done better)? Is that something that could be 
implemented? Something similar could perhaps be nice for r.colors as 
well when using one of the included color tables (but only those based 
on values rather than percentages obviously).

Cheers,

Paulo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add multiply option to cpt2grass.patch
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151201/d2b415ca/attachment.bin>


More information about the grass-dev mailing list