I have several raster layers with costs associated to distances from certain cells. Some distances are positive (i.e. the further from the cell, the better) and others are the opposite (i.e. the closer, the better).
How can I use GRASS's commands to convert some layers to find the negative distance-costs? Could r.mapcalc work?