[GRASS-user] printing category values with r.stats -1

Peter Tittmann ptittmann at gmail.com
Mon Jul 18 16:33:32 PDT 2016


All,

I’d like to output category values with r.stats as I need to run paired tests between and among categories. Toward this end I am using v.rast  with `-1` to print all raster values to a file and I’d like to get category value sprinted to that file as well but I’ve not been able to. The input is a floating point raster and Ii’ve tried the following:

`r.stats --overwrite -1 -l -n -N -C in=cye output=~/Desktop/foo.txt`

which prints values to the file but no category information.

strangely (to me) no actual categories are printed in `r.report cye` :

+-----------------------------------------------------------------------------+
|                         RASTER MAP CATEGORY REPORT                          |
|LOCATION: usfs_pgc                                   Mon Jul 18 16:29:28 2016|
|-----------------------------------------------------------------------------|
|          north: 2378562    east:  1491875                                   |
|REGION    south:  414062    west: -1791375                                   |
|          res:       250    res:       250                                   |
|-----------------------------------------------------------------------------|
|MASK: allot_pgc_r in pg_XXXXX, categories 3-34                               |
|-----------------------------------------------------------------------------|
|MAP: Rasterized vector map from labels (cye in pg_kenai)                     |
|-----------------------------------------------------------------------------|
|                            Category Information                             |
|                    #|description                                            |
|-----------------------------------------------------------------------------|
|-23.133515--22.582088|from  to                                               |
|-17.619246--17.067819|from  to                                               |
|-17.067819--16.516392|from  to                                               |
|-16.516392--15.964965|from  to                                               |
|-15.964965--15.413539|from  to                                               |
|-15.413539--14.862112|from  to                                               |
|-14.862112--14.310685|from  to                                               |
|-14.310685--13.759258|from  to                                               |
|-13.759258--13.207831|from  to                                               |
|-13.207831--12.656404|from  to                                               |
|-12.656404--12.104977|from  to                                               |
| -12.104977--11.55355|from  to                                               |
| -11.55355--11.002124|from  to                                               |
|-11.002124--10.450697|from  to                                               |
|  -10.450697--9.89927|from  to                                               |
|   -9.89927--9.347843|from  to                                               |
|  -9.347843--8.796416|from  to                                               |
|  -8.796416--8.244989|from  to                                               |
|  -8.244989--7.693562|from  to                                               |
|  -7.693562--7.142135|from  to                                               |
|  -7.142135--6.590708|from  to                                               |

Thanks in advance for the assistance.


Peter


More information about the grass-user mailing list