Color map problems

I'm starting to play with GRASS after several months away from it.

If I take a gif file (not necessarily map data) and display it with xv,
xpaint, or netscape it looks great. If I import it into GRASS and
display it with d.rast it looks awful. The information is correct, but my
color map is very poor. Is there an easy way of getting a better color
map, possibly from X. It would take me all day to edit the color table
with d.colors. Indeed, even a text editor wouldn't work very well,
because I simply want to make things look like they do in the other
packages. Doing this with an editor would be a pain.

                                             Dave Mandel

==============================================================
David Mandel, Linux Activist dmandel@transport.com
Internet Provided by: Transport Logic (503) 243-1940
               Serving the Pacific Northwestern USA
Portland * Vancouver * McMinnville * Salem * Bend

This sounds like a problem for r.colormode float.
try that, then d.rast the gif file again.

The problem is that grass uses a 256 colour colormap, using (by default) a
fixed set of colors that represent a systematic selection through the
colours. It is not optimized for any particular image. Your gif file is
being forced to use this color map, rather than its own. r.colormode float
will allowthe image to use its own colormap. The rest of the system will
retain the normal colormap, so thing will flash in and out all the time.
Try it....

Angus Carr,
Masters of Forestry student

On Tue, 25 Feb 1997, David Mandel wrote:

I'm starting to play with GRASS after several months away from it.

If I take a gif file (not necessarily map data) and display it with xv,
xpaint, or netscape it looks great. If I import it into GRASS and
display it with d.rast it looks awful. The information is correct, but my
color map is very poor. Is there an easy way of getting a better color
map, possibly from X. It would take me all day to edit the color table
with d.colors. Indeed, even a text editor wouldn't work very well,
because I simply want to make things look like they do in the other
packages. Doing this with an editor would be a pain.

                                             Dave Mandel

==============================================================
David Mandel, Linux Activist dmandel@transport.com
Internet Provided by: Transport Logic (503) 243-1940
               Serving the Pacific Northwestern USA
Portland * Vancouver * McMinnville * Salem * Bend

On Wed, 26 Feb 1997, Angus Carr wrote:

This sounds like a problem for r.colormode float.
try that, then d.rast the gif file again.

The problem is that grass uses a 256 colour colormap, using (by default) a
fixed set of colors that represent a systematic selection through the
colours. It is not optimized for any particular image. Your gif file is
being forced to use this color map, rather than its own. r.colormode float
will allowthe image to use its own colormap. The rest of the system will
retain the normal colormap, so thing will flash in and out all the time.
Try it....

I have tryed both r.colormode fixed and r.colormode float, with little
luck. Indeed, I normally run most of my applications including GRASS with
private color maps to avoid color problems.

However, I have yet to try r.in.gif as Jim Schmidt suggested as my GRASS
version of Linux is too old to have this. My AIX version does have this
and I have had good luck with it. I suppose I should think about
updating my Linux GRASS. Someday.

                                                 Dave Mandel

==============================================================
David Mandel, Linux Activist dmandel@transport.com
Internet Provided by: Transport Logic (503) 243-1940
               Serving the Pacific Northwestern USA
Portland * Vancouver * McMinnville * Salem * Bend