[GRASS-user] How to find the second largest value in a series of rasters.

Hamish hamish_b at yahoo.com
Thu Dec 8 19:35:38 EST 2011


Marcello wrote:
> I have to find the maximum value for each cell in a series
> of rasters and generate both a maximum value map and a
> categorical map with the raster number which contains the
> maximum value.

see also:

http://grass.osgeo.org/wiki/Time_series#Common_legends_for_many_raster_maps

it sounds like you have done something similar already, but
maybe you could adapt it somehow, or it is faster.

I think you'll have to use g.copy + r.null (or better r.reclass)
to hide the highest values.


Hamish


More information about the grass-user mailing list