[GRASS-user] get the shifted minimum from a raster series
Veronica Andreo
veroandreo at gmail.com
Thu Feb 7 03:04:38 PST 2019
Hi Ken,
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).
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
best,
Vero
El jue., 7 feb. 2019 07:16, Ken Mankoff <mankoff at gmail.com> escribió:
> 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.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190207/4fde2584/attachment.html>
More information about the grass-user
mailing list