[GRASSLIST:1574] Re: i.composite and r.in.gdal
Kevin Slover
Kevin.Slover at noaa.gov
Mon Oct 27 14:16:35 EST 2003
Ahhh, good thing I kept notes on this when I did it a while ago..
now, I am thinking this is good, but this is how I did it..
1. Created a color file with values of 0 and 255.. such as:
0 0 0 0
255 255 255 255
end
then, using cat color.file | r.colors map=X.X color=rules
2. run r.support, and ONLY create histogram (option 2)
3. use r.composite to put the three layers together...
4. and to export, r.out.tiff...
Shot in the dark, has been about 1 1/2 yrs since I have done this..
hopefully the notes are still good...
Daniel Victoria wrote:
> I think you need to set the color palette correctly
> before doing the composite. try first ruining r.color
> on each image, setting a gray color palette or a
> gray.eq and then make the composite
>
> Daniel
>
>
> --- bfdi533 <bfdi533 at cbacc-security3.bus.utexas.edu>
> wrote:
>
>>I have finally gotten through the bumps to getting
>>r.in.gdal working on
>>a geotiff.
>>
>>Now, I have loaded a shade relief of the US with
>>r.in.gdal and have a
>>shdrlf image group and shdrlf.1, shdrlf.2 and
>>shdrlf.3 raster images. I
>>have tried to composite them with i.composite using
>>1=R, 2=G and 3=B
>>(assuming this to be the correct sequence) using
>>16^3 colors (resulting
>>in 4096 shades). The results are not what I had
>>expected.
>>
>>Here is what I had expected:
>>
>
> http://w3test.mccombs.utexas.edu/services/cbacc/dbsupport/images/expected.png
>
>>and here is what I actually got:
>>
>
> http://w3test.mccombs.utexas.edu/services/cbacc/dbsupport/images/composite.png
>
>>Any help on getting this composite right?
>>
>>Ed Davison
>>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>
--
LTJG Kevin Slover, NOAA
GIS Specialist/Oceanographer
NOAA/National Hurricane Center/Storm Surge Unit
11691 SW 17th Street
Miami FL 33165
W (305) 229-4456
More information about the grass-user
mailing list