Hi Is there no mode function in r.mapcalc? (ie a function that will return the mode of an list of numbers of indefinate length, like max or min) and does anyone have a snippet of script to get around this. cheers Tom Tom Charnock O--O Dept Civil Engineering (~~~~) Aston University ( __ ) Birmingham B4 7ET UK /|\ /|\ charnotw at sun.aston.ac.uk