Gap filling for categorical data

From GRASS-Wiki
Jump to: navigation, search

Q: How can I fill holes in a raster map with categorical data?

A: For categorical data use r.grow.distance which assigns the nearest non-NULL value to a NULL cell:

 r.grow.distance in=mymap value=mymap_filled