On 12-12-15 04:21, Anna Petrášová wrote:
Hi Paulo,

On Tue, Dec 1, 2015 at 10:17 AM, Paulo van Breugel <[email protected] <mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/grass-dev



_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to