QGIS calculate sum of values in more raster layers

by zubro   Last Updated July 17, 2017 10:22 AM

I have cloud masks (rasters) of diferrent days (from sentinel 2a product) and I would like to calculate how many times was some area covered by clouds. My basic idea is put all layers on each other and calculate for each cell how many times value of cloud occured in this cell. Result should be a raster image with values of number of days under cloud for each cell.

How could I do that, what raster algebra should I use or should I convert rasters to vectors and made different processing ?

Answers 1

This could easily be done with the tool r.series from the GRASS-repository. After you start r.series, select the rasters with the cloud coverage and select the aggregation method “count”. This should give you a result raster with the number of non NULL values from the time series.

July 17, 2017 09:40 AM

Related Questions

convert a raster (.tif format) into a mesh

Updated September 07, 2017 19:22 PM

Rounding raster pixel values in QGIS

Updated April 20, 2018 05:22 AM

Elevation correction

Updated April 09, 2018 03:22 AM

Best way to add many rasters to each other

Updated August 01, 2017 20:22 PM