[GRASSLIST:4013] Re: texture analysis and r.out.tiff output

Maciek Sieczka werchowyna at pf.pl
Fri Jul 23 20:05:12 EDT 2004


> I am running texture analyses on individual Landsat bands using
> r.texture (using the contrast measure).  In order to produce a
> directionally invariant texture image, I am taking the average of the
> four ouput rasters, using r.mapcalc.
>
> When I export the final result to a tiff image using r.out.tiff, I get a
> 3 band image, and I'm not sure why.  I have only been using the first
> band for further analyses, but want to be sure of what I am leaving
> out.
>  Does r.out.tiff always create a multiband output image?   Or is it
> related to the r.texture output?

if you provide -p for r.out.tiff you'll get a 8bit scale output

watch for the floating point values, r.out.tiff -p doesn't actually round
the values in spite of what it says
it doesn't even trunctate properly, I don't know, someone please verify this

it's best to round the values yourself with mapcalc prior to export into
tiff

Maciek




More information about the grass-user mailing list