I have two rasters. Raster1 is a reclassified raster for certain elevation value ranges. Raster2 is an elevation raster too but with gaps. I want to fill the gaps of Raster2 by the median of the elevation class of Raster1. But Raster1 is only used to give the class areas. So I want to calculate the median of Raster1 taking the elevation classes/areas of Raster2 and save them to the gaps of Raster1.
The theoretical idea is more or less clear but I don't know how to create the raster calculator statement.