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

Paulo van Breugel p.vanbreugel at gmail.com
Tue Dec 15 01:53:45 PST 2015



On 12-12-15 04:21, Anna Petrášová wrote:
> Hi Paulo,
>
> On Tue, Dec 1, 2015 at 10:17 AM, Paulo van Breugel 
> <p.vanbreugel at gmail.com <mailto:p.vanbreugel at gmail.com>> wrote:
>
>     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
>
>
> I can't really judge the usefulness of such option, but if you find it 
> useful, then go ahead and commit it. I would just use 'multiply' or 
> 'multiplier', not 'multi' as the option name.

Hi Anna, I have been rethinking this option, and it is probably 
something that is too specific. For linear scales, the -s flag will be 
sufficient, while other color scales will often be tailored to specific 
cases anyway.

>
> Best,
>
> Anna
>
>
>     _______________________________________________
>     grass-dev mailing list
>     grass-dev at lists.osgeo.org <mailto:grass-dev at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/grass-dev
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151215/3c845d8c/attachment.html>


More information about the grass-dev mailing list