[GRASS-user] get the shifted minimum from a raster series

Ken Mankoff mankoff at gmail.com
Thu Feb 7 02:15:56 PST 2019


Hi Frank,

On 2019-02-07 at 08:27 +0100, Frank David <frank.david at geophom.fr>
wrote...
> I try to find how to get the shifted minimum value of a series of
> raster map. I want to shift by one, or more, the "minimum" value found
> on each cell to get the "almost minimum" of the series. Is there an
> available function/method to do that ?

I don't think I fully understand what you want. Are you working with strds? You mention "series". If I wanted to get the second-minimum of a single raster, I would use r.stats with the "-1" flag, sort, and search for the 2nd (or 2nd-to-last).

  -k.



More information about the grass-user mailing list