Re: [GRASS-user] temporal raster accumulation

2022-08-09 Thread Ivan Marchesini

Thank you Stefan and Markus

I'll check out which one of the different solutions works better for me

thank you again!!!

On 09/08/22 13:43, Markus Neteler wrote:

Hi Ivan,

In addition, see also

https://grasswiki.osgeo.org/wiki/Temporal_data_processing#Aggregation_of_seasonal_data_using_time_ranges

best,
Markus

On Tue, Aug 9, 2022 at 11:40 AM Stefan Blumentrath
 wrote:

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  On Behalf Of Ivan 
Marchesini
Sent: tirsdag 9. august 2022 09:45
To: GRASS user list 
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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] temporal raster accumulation

2022-08-09 Thread Markus Neteler
Hi Ivan,

In addition, see also

https://grasswiki.osgeo.org/wiki/Temporal_data_processing#Aggregation_of_seasonal_data_using_time_ranges

best,
Markus

On Tue, Aug 9, 2022 at 11:40 AM Stefan Blumentrath
 wrote:
>
> 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  On Behalf Of Ivan 
> Marchesini
> Sent: tirsdag 9. august 2022 09:45
> To: GRASS user list 
> 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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] temporal raster accumulation

2022-08-09 Thread Stefan Blumentrath
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  On Behalf Of Ivan 
Marchesini
Sent: tirsdag 9. august 2022 09:45
To: GRASS user list 
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@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
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] temporal raster accumulation

2022-08-09 Thread Ivan Marchesini

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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user