Is I understood from description of 'r.category' for r.cats mask is ignored. Is there other posibility to eliminate categories outside the mask in spite of using mapcalc and creating temporary file? J.