[GRASS-user] summing rasters with a condition given by other rasters

2015-05-17 Thread Martin_Brandt
I have the following issue to solve: There is a MODIS NDVI time series with 23 images for one year, named ndvi_01 to ndvi_23. Then i have a raster with integer values from 1-23 representing the start of the growing season (SOS), and the end (EOS), the values differ for each pixel. What i am trying

Re: [GRASS-user] summing rasters with a condition given by other rasters

2015-05-18 Thread Nikos Alexandris
* Martin_Brandt [2015-05-17 12:44:33 -0700]: > I have the following issue to solve: > There is a MODIS NDVI time series with 23 images for one year, named ndvi_01 > to ndvi_23. Then i have a > raster with integer values from 1-23 representing the start of the growing > season (SOS), and the end (

Re: [GRASS-user] summing rasters with a condition given by other rasters

2015-05-18 Thread Veronica Andreo
Hi Martin According to the data you have, you may wanna register your ndvi maps as relative time, and then: # with this you select maps between dates pointed out in your sos and eos maps and put null everywhere else t.rast.mapcalc -n input=ndvi output=ndvi_sos_eos base=ndvi_sos_eos expr="if(start

Re: [GRASS-user] summing rasters with a condition given by other rasters

2015-05-19 Thread Martin_Brandt
it works great and is amazingly fast, a comparable operation in R needs 30 minutes while it's done in GRASS in 20 seconds. There seems to be a great potential of this new tool, thanks Veronica and Nikos! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/summing-rasters-with-a