If r.digit is not in your grass4.0 version you can get it by anonymous ftp from moon.cecer.army.mil. it is in the directory grass/grass4.0/updates/src/raster/r.digit. You will also need the program r.in.poly wich is in the directory /grass/grass4.0/updates/src/raster/r.in.poly Ronald Wiemer