Hi Vaclav, Just had a look at r.binning, very useful. There is a small error in the code, you are importing grass.script as gs, so on line 33 it should be options, flags = gs.parser() instead of options, flags = grass.parser() I could have made the correction, but I am not sure what is customary in case of these kind of 'typos'. Cheers, Paulo