<div dir="auto">Hi Ken,<div dir="auto"><br></div><div dir="auto">There isn't any build-in function for that in grass, afaik. Depending on how long is your series, you could shift the map list you use in each run and then use r.univar on each output from r.series to get the minimum and by comparison, get the second minimum of the series of maps (a scalar). </div><div dir="auto"><br></div><div dir="auto">However, if what you need is a map of second minimums per pixel, I believe that might require some programming for a new function... Do you know any other software which has this function? Maybe, if there's such thing in Python for example, it could be recycled or used with grass maps in a script... Dunno, just thinking out loud</div><div dir="auto"><br></div><div dir="auto">best,</div><div dir="auto">Vero</div></div><br><div class="gmail_quote"><div dir="ltr">El jue., 7 feb. 2019 07:16, Ken Mankoff <<a href="mailto:mankoff@gmail.com" target="_blank" rel="noreferrer">mankoff@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Frank,<br>
<br>
On 2019-02-07 at 08:27 +0100, Frank David <<a href="mailto:frank.david@geophom.fr" rel="noreferrer noreferrer" target="_blank">frank.david@geophom.fr</a>><br>
wrote...<br>
> I try to find how to get the shifted minimum value of a series of<br>
> raster map. I want to shift by one, or more, the "minimum" value found<br>
> on each cell to get the "almost minimum" of the series. Is there an<br>
> available function/method to do that ?<br>
<br>
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).<br>
<br>
  -k.<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div>