<div dir="ltr"><div>Hi Stefan, <br></div><div><br></div><div>Nice problem you have on hands... you are right that min(), max(), median() are not supported in t.rast.algebra... a pity since since that would be the optimum (we could open a feature request for this as to remember).</div><div><br></div><div>The only thing I can think of (though not elegant) is to use the where option in t.rast.aggregate setting the date and with 3 days granularity and min (max or median) method. Then cycle over starting dates... instead looking backwards, you go forward in time but iterate over each day...</div><div><br></div><div>Then, there's Luca's add-on, t.rast.what.aggr, that allows to estimate stats backwards in time but for a vector of points with date as attribute: <a href="https://grass.osgeo.org/grass76/manuals/addons/t.rast.what.aggr.html">https://grass.osgeo.org/grass76/manuals/addons/t.rast.what.aggr.html</a></div><div><br></div><div>I added Thomas Leppelt in cc, maybe he has a better idea since Sören and him were the authors of the temporal algebra (sorry for double posting Thomas, I do not know if you are in the list)</div><div><br></div><div>best,</div><div>Vero<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 25 feb. 2020 a las 6:02, Stefan Blumentrath (<<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="NO-BOK">
<div class="gmail-m_-7889739418573985819WordSection1">
<p class="MsoNormal">Dear all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-GB">I would like to calculate a running univariate statistics over a Space Time Raster Dataset: e.g. for each day the maximum temperature looking up to three days back.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">In t.rast.algebra, I can use temporal buffering (buff_t() function) or temporal offset for that purpose, but functions like min(), max(), median(), are not supported.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">t.rast.aggregate is not suitable because it does not allow for overlapping aggregation…<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any idea how to achieve that? Did I overlook a relevant module?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Stefan<u></u><u></u></span></p>
</div>
</div>

_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div>