[GRASSLIST:1678] Cut, color, and paste...

mberglund mberglund at rcinfo.net
Wed Mar 28 11:48:41 EST 2001


Ok guys,

I would like to publicly thank Morten and Eric for their help in getting
me rolling with my state-plane problem. I got my stuff to rectify and it
would never have happened without them. If anyone has similar problems
with rectifying STP material, give me a call, I have a handle on it.


Cutting:

Now I would like to take my freshly imported vector polygon map (which is
nothing more than grid squares) and use those grid squares to cut out
chunks of my raster image. Which commands would be useful for this and how
can I create a mask for only a small part of the vector map?

Coloring:

The colors are still quite odd on the raster image. I use r.in.gdal to
import my tiff. The result is three files numbered blah.1 ..2 ..3
I then use i.composite as Bruce suggested. I have done this in a variety
of combinations (1,2,3 - 2,1,3 - 3,2,1 - 2,3,1 - etc.) and so far I
continue to get a series of blue/green and yellow hues. Not very
representative of roof lines. I am getting Sid files and then
exporting them using the Mr. Sid viewer by Lizard Tech. Is there some
problem with this conversion from the get-go?

Someone suggested modifying the color maps. That didn't seem to work.

Note: The gimp indicates the raw tiff file has a color depth of
16, but also says it is "True color". I am a little confused by that, as I
thought "True color" implied 24 bit color. 

Pasteing:

Ignoring the fact that I can't yet do the above, I tried to export the
raster layer just to see if I could do it. Well, it was writing a tiff
file all right, but it seems to write the entire map size, not just that
layers useful information. By the time I got to ~270 megs I dumped the
process. The original image (uncompressed) was only ~125 megs.
Is there some way to export only the "real" portion of a "layer" without
exporting everything around it?

Other problems noted in the latest CVS version:

Linux 2.4.0-11 slackware:
Must manually start the xdriver using mon.start in $GISBASE/etc.

/usr/local/grass5/etc/mon.start x0 "/usr/local/grass5/dev/fifo.1a 
/usr/local/grass5/dev/fifo.1b"

d.mon start=x0 results in
Usage: x0 [-] "input_fifo output_fifo" [nlev]

Also, attempting to manually force the color level (nlev) results in the
same error.

These are the commands I tried to force the nlev option.

/usr/local/grass5/etc/mon.start x0 "/usr/local/grass5/dev/fifo.1a
/usr/local/grass5/dev/fifo.1b" nlev=256

or

/usr/local/grass5/etc/mon.start x0 "/usr/local/grass5/dev/fifo.1a
/usr/local/grass5/dev/fifo.1b" 256 

Usage: x0 [-] "input_fifo output_fifo" [nlev]

It appears that my monitorcap is configured correctly. I may be wrong, but
it worked with the last cvs version I grabbed (about a week ago).

Thanks,
Matt Berglund

RC Info Inc.
(352)867-8669




More information about the grass-user mailing list