I am trying to write a little Python extension wrapping r.color to use
different kind of strecthes,
It should be pretty simple, basically just builkding rules on-the-fly
and pass them to r.color. But I can't quite seem how to retrieve the
GRASS color ramps details to create my ruleset.
Is there any portable way to actually to actually passthe name of a
GRASS color ramp, and get the details (colours) of that colour ramp?
On Mon, Sep 17, 2018 at 4:17 AM Pierre Roudier <pierre.roudier@gmail.com> wrote:
Hi all,
I am trying to write a little Python extension wrapping r.color to use
different kind of strecthes,
It should be pretty simple, basically just builkding rules on-the-fly
and pass them to r.color. But I can't quite seem how to retrieve the
GRASS color ramps details to create my ruleset.
Is there any portable way to actually to actually passthe name of a
GRASS color ramp, and get the details (colours) of that colour ramp?
-----Original Message-----
From: grass-dev <grass-dev-bounces@lists.osgeo.org> On Behalf Of Markus Neteler
Sent: mandag 17. september 2018 20:15
To: Pierre Roudier <pierre.roudier@gmail.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>
Subject: Re: [GRASS-dev] Programmatically obtain GRASS colour ramps in Python
On Mon, Sep 17, 2018 at 4:17 AM Pierre Roudier <pierre.roudier@gmail.com> wrote:
Hi all,
I am trying to write a little Python extension wrapping r.color to use
different kind of strecthes,
It should be pretty simple, basically just builkding rules on-the-fly
and pass them to r.color. But I can't quite seem how to retrieve the
GRASS color ramps details to create my ruleset.
Is there any portable way to actually to actually passthe name of a
GRASS color ramp, and get the details (colours) of that colour ramp?
I am trying to write a little Python extension wrapping r.color to use
different kind of strecthes,
It should be pretty simple, basically just builkding rules on-the-fly
and pass them to r.color. But I can’t quite seem how to retrieve the
GRASS color ramps details to create my ruleset.
Is there any portable way to actually to actually passthe name of a
GRASS color ramp, and get the details (colours) of that colour ramp?