[GRASS-user] temporal raster accumulation

Stefan Blumentrath Stefan.Blumentrath at nina.no
Tue Aug 9 02:40:37 PDT 2022


Hi Ivan,

A simple, quick-and-dirty approach could be:
t.rast.algebra basename=rain5 expression="rain5=rain + rain[-1] + rain[-2] + rain[-3] + rain[-4] + rain[-5]"

Temporal selection (start_date(rain)...) is probably more elegant...

See:
https://grass.osgeo.org/grass78/manuals/t.rast.algebra.html

Cheers
Stefan

-----Original Message-----
From: grass-user <grass-user-bounces at lists.osgeo.org> On Behalf Of Ivan Marchesini
Sent: tirsdag 9. august 2022 09:45
To: GRASS user list <grass-user at lists.osgeo.org>
Subject: [GRASS-user] temporal raster accumulation

Dear GRASS users

I'm a little bit confused about which can be the best module/tool to perform the following task I have a strd having a daily granularity. It contains total daily cumulated rainfall.

I would like to create a new strd where, for each day, I have the cumulated rainfall in the antecedent 5 days

can you kindly suggest which is the best tool (or combination of tools) to reach this aim?

thank you very much

Ivan





_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user&data=05%7C01%7CStefan.Blumentrath%40nina.no%7C1944c976bd1f4fb14a3608da79db2020%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637956279455240967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BKqu%2F7tSMq7jNp8BF6bKDc04rf4BpwElNSif3G12gc4%3D&reserved=0


More information about the grass-user mailing list