[GRASS-dev] [GRASS GIS] #3667: Add an option to add grey color scale to r.in.gdal imports
GRASS GIS
trac at osgeo.org
Thu Sep 27 19:14:46 PDT 2018
#3667: Add an option to add grey color scale to r.in.gdal imports
---------------------------+-------------------------
Reporter: pierreroudier | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
---------------------------+-------------------------
At the moment `r.in.gdal` automatically affects the `viridis` colour
palette to any raster layer imported.
I think that's a good thing, and for single layer rasters it corresponds
to best modern practice.
It is however slightly annoying when importing imagery, and necessitate to
loop through the bands with `r.colors layer.i col=grey`.
I think the best of both worlds could be achieved by adding a flag `-g` to
`r.in.gdal` that would force the colour palette to be `grey`.
Thus:
{{{
r.in.gdal ./path/to/foo.tif out=foo
}}}
would use `viridis`, while:
{{{
r.in.gdal -g ./path/to/bar.tif out=bar
}}}
would use `grey`.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3667>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list