Opened 6 years ago

Last modified 5 years ago

#3504 new enhancement

v.rast.stats: add "mode" and "diversity" to methods

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Vector Version: svn-trunk
Keywords: v.rast.stats Cc:
CPU: Unspecified Platform: Unspecified

Description

Currently, if one needs to extract mode and diversity statistics from a Land Cover raster map for polygons in a vector map, polygons need to be converted to raster format, then use G7:r.statistics (which seems to be the only module providing mode) and then query r.statistics' output raster(s) with v.rast.stats again. If v.rast.stats would provide these basic info, the workflow would be very much simplified.

Would it be possible to add mode and diversity to the methods available in G7:v.rast.stats?

Change History (6)

comment:1 by annakrat, 6 years ago

Not that it would probably help here, but there is r.mode module.

in reply to:  1 comment:2 by veroandreo, 6 years ago

Replying to annakrat:

Not that it would probably help here, but there is r.mode module.

Yes, you are right. But using r.mode for this case does not make any difference, it would be the same than using r.statistics. I need to query a LC map with a polygon vector map and get the mode and diversity in the attribute table of the vector map.

comment:3 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:4 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:5 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:6 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.