[R-sig-Geo] summing rasters with a condition given by other rasters

Martin Brandt martin.brandt at mailbox.org
Sat May 9 17:54:51 CEST 2015


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, stored in a raster brick called MODIS.NDVI.2010. Then i have a
raster with integer values from 1-23 representing the start of the growing
season (SOS), and the end (EOS), e.g. SOS = 13 and EOS = 21 for one pixel.
What i am trying to do is to create a raster (let's call it SEASON) which
sums all NDVI values from ndvi_01 to ndvi_23 which are between SOS and EOS,
for the example pixel that would be ndvi_13 to ndvi_21.

Is this possible with the raster package?

kind regards,
Martin 



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/summing-rasters-with-a-condition-given-by-other-rasters-tp7588222.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list