I'm pretty sure someone has already answered this, but cannot get my hands on the relevant mail: which grass python lib function should I use and how in order to be able to feed r.recode, r.reclass, r.colors, etc rules on the fly ? Moritz