Re: [GRASS-user] detrending time series maps

2023-12-31 Thread Veronica Andreo via grass-user
That's right, Ivan! End of year mental death, sorry for the noise... Vero El vie, 29 dic 2023 a las 15:34, Ivan Marchesini () escribió: > Hi veronica > > > I see what you did with creating the days time series. In that way you > acknowledge irregular gaps, right? > > yes this is the reason > >

Re: [GRASS-user] detrending time series maps

2023-12-30 Thread Micha Silver via grass-user
Hi Ivan: On 29/12/2023 20:34, Ivan Marchesini via grass-user wrote: Hi veronica I see what you did with creating the days time series. In that way you acknowledge irregular

Re: [GRASS-user] detrending time series maps

2023-12-29 Thread Ivan Marchesini via grass-user
Hi veronica I see what you did with creating the days time series. In that way you acknowledge irregular gaps, right? yes this is the reason However, why do you multiply by days strds? From my understanding, detrending by subtracting the results of a model obbeys this rule: value(t) =

Re: [GRASS-user] detrending time series maps

2023-12-28 Thread Veronica Andreo via grass-user
Hello Ivan, Thanks for coming back to this :) I see what you did with creating the days time series. In that way you acknowledge irregular gaps, right? Otherwise, as t.rast.series method=slope,offset uses r.series in the background, it will use index as independent variable and therefore maps

Re: [GRASS-user] detrending time series maps

2023-12-28 Thread Ivan Marchesini via grass-user
Dear Veronica I think I found a simple solution using temporal raster modules. Here is an example: #evaluating info of the strds eval `t.info mystrds -g` #getting the starting day (of the year, 0-365) of my strds startday=$(date -d "$start_time" "+%j") #Creating a new strds where each pixel

Re: [GRASS-user] detrending time series maps

2023-12-23 Thread Ivan Marchesini via grass-user
Hi Veronica Thank you. It goes in the direction of my idea evn if  my problem is exactly trying to take into account the correct gaps between that data I have another idea. if it works I will come back here to explain how I did thank you again Ivan On 22/12/23 13:45, Veronica Andreo

Re: [GRASS-user] detrending time series maps

2023-12-22 Thread Veronica Andreo via grass-user
Hello Ivan, AFAIU you could use the slope and offset maps from t.rast.series within t.rast.algebra to detrend the values of the maps within the strds, something like "detrended_strds = trend_strds - (trend_strds*map(slope) + map(offset))". Others suggest, to detrend by subtracting the previous