Question

Raster calculations

  • 30 March 2020
  • 1 reply
  • 3 views

Hello,

 

I did a processing where I classified the individual LAS files into "floors" and "buildings " and subsequently generated them into mosaics. Mosaics only contain values " 0 "= floors and building heights. The picture shows a mosaic.

I would like to calculate the H / W index by dividing the average height of buildings by the area of cells with "0". How should I start? which transformer should I use?

Thanks in advance,

Kristina


1 reply

Hi @kristinacerar, you could try with a RasterCellCoercer to extract the building height values from the mosaic, assuming they are stored as non-zero values in the Band 0. The RasterCellCoercer would give you values for all the cells from the mosaic, so for the floor which are cells with value of "0", you could try counting the total number of those cells (with a Tester and a Counter), and then multiply by the raster cell size to get the total area. Hope this helps with what you are trying to achieve.

Reply