Trond masking does not work with r.surf.contour , but what you can do is make a mask and give it a value not equal to zero. Then patch this mask with your contour raster map. r.surf.contour will now skip the masked area because all the cells in the masked area have a value Hope this will work Ronnie