Count for each feature how many pixels from the given grids are above a certain NDVI-value. First threshold parameter is the relevant NDVI-value. Last three paramters define how many pixels need to be above that threshold to select a roof as greenroof depending on the roof slope (percentagewise).