Hello,

Thank you very much Vero and Micha, It's exactly what I was looking for ! That's great !


Cheers,

Frank


Le 26/05/2019 à 12:11, Micha Silver a écrit :

On 26/05/2019 7:02, Veronica Andreo wrote:
Hi Frank

El sáb., 25 may. 2019 22:51, Frank David <frank.da...@geophom.fr <mailto:frank.da...@geophom.fr>> escribió:

    Hi all,

    I would like to identify the raster, in a r.series calculation
    for min
    (or max), where the result is coming from.

    Is there a way to do so ?


max_raster, min_raster in r.series will give you the index of the raster map in the series containing either max or min values

Is that what you need?

Vero


Hello Frank:


I used Vero's suggestion in a script I was working on some months ago: I had a list of rasters, each represented a "station_id". I used g.list to create the list of raster names, and fed that into r.series input=<list> method=max_raster.

Then I used r.reclass to get back the station_id from the list index. I had a text file with matches between the index of the raster in the list, and it's actual "station_id". So r.reclass returned a raster with each pixel value being the station_id of the maximum raster in the list.

HTH



    Thank you

    Frank

    _______________________________________________
    grass-user mailing list
    grass-user@lists.osgeo.org <mailto:grass-user@lists.osgeo.org>
    https://lists.osgeo.org/mailman/listinfo/grass-user


_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to